Changeset 760
- Timestamp:
- 04/29/06 15:09:44 (7 years ago)
- File:
-
- 1 edited
-
trunk/lib/format_linux.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/format_linux.c
r737 r760 258 258 259 259 static libtrace_linktype_t linuxnative_get_link_type(const struct libtrace_packet_t *packet) { 260 switch (htons((((struct libtrace_linuxnative_header*)(packet->buffer))->hdr.sll_protocol))) { 260 int linktype=htons((((struct libtrace_linuxnative_header*)(packet->buffer)) 261 ->hdr.sll_protocol)) 262 switch (linktype) { 261 263 case ETH_P_IP: 262 264 case ETH_P_IPV6: … … 264 266 return TRACE_TYPE_ETH; 265 267 default: /* shrug, beyond me! */ 266 printf("unknown type %x\n", (((struct libtrace_linuxnative_header*)(packet->buffer))->hdr.sll_protocol));268 printf("unknown type %x\n",linktype); 267 269 return -1; 268 270 }
Note: See TracChangeset
for help on using the changeset viewer.
