Show
Ignore:
Timestamp:
04/03/07 10:34:23 (22 months ago)
Author:
aturner
Message:

report errno on send failure. and only warn on errors, not exit. This
is to make things a little less painful for people dealing with the BPF
bug in OS X. refs #142

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/send_packets.c

    r1789 r1790  
    167167        /* write packet out on network */ 
    168168        if (sendpacket(sp, pktdata, pktlen) < (int)pktlen) 
    169             errx(1, "Unable to send packet: %s", sendpacket_geterr(sp)); 
     169            warnx("Unable to send packet: %s", sendpacket_geterr(sp)); 
    170170                 
    171171        /*