Changeset 7837dc4


Ignore:
Timestamp:
07/26/10 11:30:33 (10 years ago)
Author:
Shane Alcock <salcock@…>
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:
125ec3d
Parents:
96bf151
Message:
  • Fixed warning about strict aliasing - trying to do too much casting at once :)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    r238d50a r7837dc4  
    358358       
    359359        for(;;) {
    360 
    361                 ret=pcap_next_ex(INPUT.pcap,
    362                                 (struct pcap_pkthdr **)&packet->header,
    363                                 (const u_char **)&packet->payload);
     360               
     361                struct pcap_pkthdr *pcap_hdr = NULL;
     362                u_char *pcap_payload = NULL;
     363
     364                ret = pcap_next_ex(INPUT.pcap, &pcap_hdr,
     365                                (const u_char **)&pcap_payload);
     366               
     367                packet->header = pcap_hdr;
     368                packet->payload = pcap_payload;
    364369
    365370                switch(ret) {
Note: See TracChangeset for help on using the changeset viewer.