Hi,

I noticed an exceptional large UDP netstat counter today:

$ netstat -s -p udp
udp:
        85251 datagrams received
        0 with incomplete header
        0 with bad data length field
        72917 with bad checksum
        0 with no checksum
        188310 input packets software-checksummed
        155001 output packets software-checksummed
        6189 dropped due to no socket
        14484 broadcast/multicast datagrams dropped due to no socket
        0 dropped due to missing IPsec protection
        0 dropped due to full socket buffers
**
        18446744073709543277 delivered
**
        72024 datagrams output
        67498 missed PCB cache

According to http://grok.qc.to/xref/openbsd/usr.bin/netstat/inet.c#413,
delivered is

u_long delivered;
...
delivered = udpstat.udps_ipackets - udpstat.udps_hdrops -
     udpstat.udps_badlen - udpstat.udps_badsum -
     udpstat.udps_noport - udpstat.udps_noportbcast -
     udpstat.udps_fullsock;

Which is in my case:

udps_ipackets = 85251 datagrams received
udps_hdrops   =     0 with incomplete header
udps_badlen   =     0 with bad data length field
udps_badsum   = 72917 with bad checksum
udps_noport   =  6189 dropped due to no socket
udps_noportbcast = 14484 broadcast/multicast datagrams dropped due to no socket
udps_fullsock =     0 dropped due to full socket buffers

So delivered is (signed) -8339.

This doesn't look right. Should I be worried? Is that a bug?

PS: OpenBSD puffy.example.tld 5.5 GENERIC.MP#0 amd64

Reply via email to