Changeset 8e580c5 for libpacketdump
- Timestamp:
- 05/06/10 14:59:13 (11 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- f01e6a8
- Parents:
- 28318a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpacketdump/link_6.c
rc7062df r8e580c5 11 11 #include "libtrace_int.h" 12 12 13 DLLEXPORT void decode(int link_type UNUSED,const char *pkt,unsigned len)13 DLLEXPORT void decode(int link_type ,const char *pkt,unsigned len) 14 14 { 15 15 libtrace_sll_header_t *sll = (libtrace_sll_header_t *) pkt; 16 uint16_t type; 17 16 libtrace_linktype_t linktype = link_type; 17 void *ret; 18 18 19 if (len < sizeof(*sll)) { 19 20 printf(" Linux SLL: Truncated (len = %u)\n", len); … … 40 41 41 42 /* Do we recognise the hardware address type? */ 42 type = arphrd_type_to_libtrace(ntohs(sll->hatype)); 43 if (type != 65535) { 44 decode_next(pkt + sizeof(*sll), len - sizeof(*sll), "link", type); 43 ret=trace_get_payload_from_meta(pkt, &linktype, &len); 44 /*type = arphrd_type_to_libtrace(ntohs(sll->hatype)); */ 45 if (linktype != 65535) { 46 decode_next(ret, len, "link", linktype); 47 /*decode_next(pkt + sizeof(*sll), len - sizeof(*sll), "link", type);*/ 45 48 return; 46 49 }
Note: See TracChangeset
for help on using the changeset viewer.