Changeset 81f9b6e for lib/format_pcap.c
- Timestamp:
- 05/03/06 00:38: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:
- e5f1431
- Parents:
- ef69a05
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_pcap.c
r62987bb r81f9b6e 366 366 linktype = rt_to_pcap_dlt(packet->type); 367 367 return pcap_dlt_to_libtrace(linktype); 368 } 369 370 static int8_t pcap_set_direction(libtrace_packet_t *packet,int8_t dir) { 371 libtrace_sll_header_t *sll; 372 promote_packet(packet); 373 sll=packet->payload; 374 if(dir==0) 375 sll->pkttype=0; 376 else 377 sll->pkttype=1; 378 return sll->pkttype; 368 379 } 369 380 … … 518 529 pcap_get_link_type, /* get_link_type */ 519 530 pcap_get_direction, /* get_direction */ 520 NULL,/* set_direction */531 pcap_set_direction, /* set_direction */ 521 532 NULL, /* get_erf_timestamp */ 522 533 pcap_get_timeval, /* get_timeval */ … … 553 564 pcap_get_link_type, /* get_link_type */ 554 565 pcap_get_direction, /* get_direction */ 555 NULL,/* set_direction */566 pcap_set_direction, /* set_direction */ 556 567 NULL, /* get_erf_timestamp */ 557 568 pcap_get_timeval, /* get_timeval */
Note: See TracChangeset
for help on using the changeset viewer.