- Timestamp:
- 04/25/06 16:37:02 (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:
- bf66333
- Parents:
- cee9e34
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux.c
re4e95499 r030aa3f 243 243 hdr.sll_family = AF_PACKET; 244 244 hdr.sll_protocol = 0; 245 hdr.sll_ifindex = if_nametoindex( packet->trace->uridata);245 hdr.sll_ifindex = if_nametoindex(trace->uridata); 246 246 hdr.sll_hatype = 0; 247 247 hdr.sll_pkttype = 0; -
lib/format_pcapfile.c
r91db67b r030aa3f 67 67 static uint16_t swaps(libtrace_t *libtrace, uint16_t num) 68 68 { 69 /* to deal with open_dead traces that might try and use this 70 * if we don't have any per trace data, assume host byte order 71 */ 72 if (!DATA(libtrace)) 73 return num; 69 74 if (DATA(libtrace)->header.magic_number == 0xd4c3b2a1) 70 75 return ((num<<8)&0xFF00)|((num>>8)&0x00FF); … … 74 79 static uint32_t swapl(libtrace_t *libtrace, uint32_t num) 75 80 { 81 /* to deal with open_dead traces that might try and use this 82 * if we don't have any per trace data, assume host byte order 83 */ 84 if (!DATA(libtrace)) 85 return num; 76 86 if (DATA(libtrace)->header.magic_number == 0xd4c3b2a1) 77 87 return
Note: See TracChangeset
for help on using the changeset viewer.