comparison rvinterf/etm/interf.c @ 184:4714fdfca39c

fc-tmsh compiles!
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 24 Nov 2013 08:40:44 +0000
parents 85222710dc92
children 2f285f20d617
comparison
equal deleted inserted replaced
183:85222710dc92 184:4714fdfca39c
87 exit(1); 87 exit(1);
88 } 88 }
89 prep_for_message_rx(); 89 prep_for_message_rx();
90 } 90 }
91 } 91 }
92
93 void
94 send_pkt_to_target(pkt, pktlen)
95 u_char *pkt;
96 {
97 u_char hdrbuf[3];
98 int len1;
99
100 len1 = pktlen + 1;
101 hdrbuf[0] = len1 >> 8;
102 hdrbuf[1] = len1 & 0xFF;
103 hdrbuf[2] = CLI2RVI_PKT_TO_TARGET;
104 write(sock, hdrbuf, 3);
105 write(sock, pkt, pktlen);
106 }