Changeset 5eeba76 for lib/format_pcapfile.c
- Timestamp:
- 05/04/06 17:05:13 (15 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:
- bc4c11e
- Parents:
- 48a20e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_pcapfile.c
re6d963c r5eeba76 216 216 } 217 217 218 static int8_t pcapfile_get_direction(const libtrace_packet_t *packet)219 { 220 int8_t direction = -1;218 static libtrace_direction_t pcapfile_get_direction(const libtrace_packet_t *packet) 219 { 220 libtrace_direction_t direction = -1; 221 221 switch(pcapfile_get_link_type(packet)) { 222 222 case TRACE_TYPE_LINUX_SLL: … … 242 242 */ 243 243 if (ntohs(sll->pkttype == 0)) { 244 direction = 1;244 direction = TRACE_DIR_INCOMING; 245 245 } else { 246 direction = 0;246 direction = TRACE_DIR_OUTGOING; 247 247 } 248 248 break; … … 262 262 if (ntohs(pflog->dir==0)) { 263 263 264 direction = 1;264 direction = TRACE_DIR_INCOMING; 265 265 } 266 266 else { 267 direction = 0;267 direction = TRACE_DIR_OUTGOING; 268 268 } 269 269 break;
Note: See TracChangeset
for help on using the changeset viewer.