comparison rvinterf/g23sh/init.c @ 336:922efdd65dce

g23sh written, compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 22 Apr 2014 07:21:04 +0000
parents rvinterf/tmsh/init.c@40b8557b9d04
children
comparison
equal deleted inserted replaced
335:40b8557b9d04 336:922efdd65dce
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 }