FreeCalypso > hg > freecalypso-sw
comparison rvinterf/lowlevel/logsent.c @ 174:3256dc6e84ae
rvinterf: refactored rvtdump compiles and works
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Fri, 22 Nov 2013 07:41:31 +0000 |
| parents | rvinterf/old/log.c@f42854da4563 |
| children | 2f285f20d617 |
comparison
equal
deleted
inserted
replaced
| 173:f42854da4563 | 174:3256dc6e84ae |
|---|---|
| 1 /* | |
| 2 * This module implements the logging of sent packets | |
| 3 */ | |
| 4 | |
| 5 #include <sys/types.h> | |
| 6 #include <stdio.h> | |
| 7 #include <string.h> | |
| 8 #include <strings.h> | |
| 9 #include "../limits.h" | |
| 10 | |
| 11 log_sent_packet(pkt, pktlen) | |
| 12 u_char *pkt; | |
| 13 { | |
| 14 char buf[MAX_PKT_TO_TARGET*3+5]; | |
| 15 int i; | |
| 16 char *dp; | |
| 17 | |
| 18 dp = buf; | |
| 19 strcpy(dp, "Sent"); | |
| 20 dp += 4; | |
| 21 for (i = 0; i < pktlen; i++) { | |
| 22 sprintf(dp, " %02X", pkt[i]); | |
| 23 dp += 3; | |
| 24 } | |
| 25 *dp = '\0'; | |
| 26 output_line(buf); | |
| 27 } |
