<--previous | contents | next-->

# ipstats - IP Protocol

IP protocol statistics.

## Header Files

- include/netinet/ip_var.h

## Interface

    import openbsd
    n = openbsd.netstat.Netstat()
    print n.ipstats()

## Example Output

The example output below was produced using the building Python pretty-printer. See the netstat parent page for an example of how this is done.

    {
        'badaddr': 0L,
        'badfrags': 0L,
        'badhlen': 0L,
        'badlen': 0L,
        'badoptions': 0L,
        'badsum': 22L,
        'badvers': 0L,
        'cantforward': 0L,
        'cantfrag': 0L,
        'delivered': 768160L,
        'forward': 0L,
        'fragdropped': 0L,
        'fragmented': 0L,
        'fragments': 0L,
        'fragtimeout': 0L,
        'inhwcsum': 0L,
        'localout': 494935L,
        'nogif': 0L,
        'noproto': 10L,
        'noroute': 32L,
        'odropped': 0L,
        'ofragments': 0L,
        'outhwcsum': 0L,
        'rawout': 0L,
        'rcvmemdrop': 0L,
        'reassembled': 0L,
        'redirectsent': 0L,
        'toolong': 0L,
        'tooshort': 0L,
        'toosmall': 0L,
        'total': 768192L
    }

<--previous | contents | next--> | (12/21/04)

PyOpenbsd v0.1 Manual