- Timestamp:
- 05/06/06 03:29:14 (16 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:
- 95747c3
- Parents:
- fe4ab68
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/protocols.c
r84a8828 r92b3f87 8 8 #include <assert.h> 9 9 #include <stdio.h> 10 #include <net/if_arp.h> 10 11 11 12 … … 86 87 { 87 88 libtrace_sll_header_t *sll; 89 void *ret; 88 90 89 91 sll = (libtrace_sll_header_t*) link; … … 97 99 if (*type) *type = sll->protocol; 98 100 99 return (void*)((char*)sll+sizeof(*sll)); 101 ret=(void*)((char*)sll+sizeof(*sll)); 102 103 switch(sll->hatype) { 104 case ARPHRD_PPP: 105 break; 106 case ARPHRD_ETHER: 107 ret=trace_get_payload_from_ethernet(ret,type,remaining); 108 } 109 110 return ret; 100 111 } 101 112
Note: See TracChangeset
for help on using the changeset viewer.