Changeset 9a5b234


Ignore:
Timestamp:
05/02/06 01:37:47 (15 years ago)
Author:
Perry Lorier <perry@…>
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:
62987bb
Parents:
84a8828
Message:

Avoid warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux.c

    r8c747709 r9a5b234  
    9595{
    9696        struct sockaddr_ll addr;
     97        memset(&addr,0,sizeof(addr));
    9798        FORMAT(libtrace->format_data)->fd =
    9899                                socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
     
    124125                struct packet_mreq mreq;
    125126                socklen_t socklen = sizeof(mreq);
     127                memset(&mreq,0,sizeof(mreq));
    126128                mreq.mr_ifindex = addr.sll_ifindex;
    127129                mreq.mr_type = PACKET_MR_PROMISC;
Note: See TracChangeset for help on using the changeset viewer.