FreeCalypso > hg > freecalypso-tools
comparison rvinterf/tmsh/init.c @ 70:2c6dca514a20
fc-tmsh works like fc-shell and fc-fsio now, following the -p convention
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Wed, 26 Oct 2016 23:33:21 +0000 |
| parents | e7502631a0f9 |
| children |
comparison
equal
deleted
inserted
replaced
| 69:2159f260ed13 | 70:2c6dca514a20 |
|---|---|
| 8 #include <strings.h> | 8 #include <strings.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include "pktmux.h" | 10 #include "pktmux.h" |
| 11 #include "localsock.h" | 11 #include "localsock.h" |
| 12 | 12 |
| 13 extern int sock; | |
| 14 | |
| 15 init() | 13 init() |
| 16 { | 14 { |
| 17 static u_char want_rvt_lost[9] = {CLI2RVI_WANT_RVTRACE, | 15 static u_char want_rvt_lost[9] = {CLI2RVI_WANT_RVTRACE, |
| 18 0xFF, 0xFF, 0xFF, 0xFF, | 16 0xFF, 0xFF, 0xFF, 0xFF, |
| 19 0x00, 0x00, 0x00, 0x00}; | 17 0x00, 0x00, 0x00, 0x00}; |
| 20 static u_char want_rvt_etm[9] = {CLI2RVI_WANT_RVTRACE, | 18 static u_char want_rvt_etm[9] = {CLI2RVI_WANT_RVTRACE, |
| 21 0xFF, 0xFF, 0xFF, 0xFF, | 19 0xFF, 0xFF, 0xFF, 0xFF, |
| 22 0x00, 0x1E, 0x00, 0x04}; | 20 0x00, 0x1E, 0x00, 0x04}; |
| 23 static u_char want_etm_mux[2] = {CLI2RVI_WANT_MUXPROTO, RVT_TM_HEADER}; | 21 static u_char want_etm_mux[2] = {CLI2RVI_WANT_MUXPROTO, RVT_TM_HEADER}; |
| 24 | 22 |
| 25 if (!sock) | |
| 26 connect_local_socket(); | |
| 27 localsock_prep_for_length_rx(); | 23 localsock_prep_for_length_rx(); |
| 28 send_init_command(want_rvt_lost, 9); | 24 send_init_command(want_rvt_lost, 9); |
| 29 send_init_command(want_rvt_etm, 9); | 25 send_init_command(want_rvt_etm, 9); |
| 30 send_init_command(want_etm_mux, 2); | 26 send_init_command(want_etm_mux, 2); |
| 31 } | 27 } |
