FreeCalypso > hg > freecalypso-sw
comparison rvinterf/old/g23sh/init.c @ 964:373af5f74e39
rvinterf: all retired stuff gathered under old
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Fri, 06 Nov 2015 23:22:47 +0000 |
parents | rvinterf/g23sh/init.c@922efdd65dce |
children |
comparison
equal
deleted
inserted
replaced
963:d69d1e097b18 | 964:373af5f74e39 |
---|---|
1 /* | |
2 * This module contains the initialization code for g23sh. | |
3 */ | |
4 | |
5 #include <sys/types.h> | |
6 #include <stdio.h> | |
7 #include <string.h> | |
8 #include <strings.h> | |
9 #include <stdlib.h> | |
10 #include "pktmux.h" | |
11 #include "localsock.h" | |
12 | |
13 extern int sock; | |
14 | |
15 init() | |
16 { | |
17 static u_char want_rvt_lost[9] = {CLI2RVI_WANT_RVTRACE, | |
18 0xFF, 0xFF, 0xFF, 0xFF, | |
19 0x00, 0x00, 0x00, 0x00}; | |
20 static u_char want_l23_mux[2] = {CLI2RVI_WANT_MUXPROTO, RVT_L23_HEADER}; | |
21 | |
22 if (!sock) | |
23 connect_local_socket(); | |
24 localsock_prep_for_length_rx(); | |
25 send_init_command(want_rvt_lost, 9); | |
26 send_init_command(want_l23_mux, 2); | |
27 } |