diff 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
line wrap: on
line diff
--- a/rvinterf/etm/interf.c	Sun Nov 24 08:03:27 2013 +0000
+++ b/rvinterf/etm/interf.c	Sun Nov 24 08:40:44 2013 +0000
@@ -89,3 +89,18 @@
 		prep_for_message_rx();
 	}
 }
+
+void
+send_pkt_to_target(pkt, pktlen)
+	u_char *pkt;
+{
+	u_char hdrbuf[3];
+	int len1;
+
+	len1 = pktlen + 1;
+	hdrbuf[0] = len1 >> 8;
+	hdrbuf[1] = len1 & 0xFF;
+	hdrbuf[2] = CLI2RVI_PKT_TO_TARGET;
+	write(sock, hdrbuf, 3);
+	write(sock, pkt, pktlen);
+}