#include <netinet/ip_var.h>

netinet/ip_var.h

includes: sys/appleapiopts.h, netinet/in.h, netinet/in_var.h, sys/types.h
3 structs · 1 macro

structipovly

Overlay for ip header used by other protocols (tcp, udp).
size 20, align 4
u_char[9]ih_x1(unused)
u_charih_prprotocol
u_shortih_lenprotocol length
struct in_addrih_srcsource internet address
struct in_addrih_dstdestination internet address

macroMAX_IPOPTLEN

#define MAX_IPOPTLEN 40

structipstat

size 196, align 4
u_int32_tips_totaltotal packets received
u_int32_tips_badsumchecksum bad
u_int32_tips_tooshortpacket too short
u_int32_tips_toosmallnot enough data
u_int32_tips_badhlenip header length < data size
u_int32_tips_badlenip length < ip header length
u_int32_tips_fragmentsfragments received
u_int32_tips_fragdroppedfrags dropped (dups, out of space)
u_int32_tips_fragtimeoutfragments timed out
u_int32_tips_forwardpackets forwarded
u_int32_tips_fastforwardpackets fast forwarded
u_int32_tips_cantforwardpackets rcvd for unreachable dest
u_int32_tips_redirectsentpackets forwarded on same net
u_int32_tips_noprotounknown or unsupported protocol
u_int32_tips_delivereddatagrams delivered to upper level
u_int32_tips_localouttotal ip packets generated here
u_int32_tips_odroppedlost packets due to nobufs, etc.
u_int32_tips_reassembledtotal packets reassembled ok
u_int32_tips_fragmenteddatagrams successfully fragmented
u_int32_tips_ofragmentsoutput fragments created
u_int32_tips_cantfragdon't fragment flag was set, etc.
u_int32_tips_badoptionserror in option processing
u_int32_tips_noroutepackets discarded due to no route
u_int32_tips_badversip version != 4
u_int32_tips_rawouttotal raw ip packets generated
u_int32_tips_toolongip length > max ip packet size
u_int32_tips_notmembermulticasts for unregistered grps
u_int32_tips_nogifno match gif found
u_int32_tips_badaddrinvalid address on header
u_int32_tips_pktdropcntrlpkt dropped, no mbufs for ctl data
u_int32_tips_rcv_swcsumip hdr swcksum (inbound), packets
u_int32_tips_rcv_swcsum_bytesip hdr swcksum (inbound), bytes
u_int32_tips_snd_swcsumip hdr swcksum (outbound), packets
u_int32_tips_snd_swcsum_bytesip hdr swcksum (outbound), bytes
u_int32_tips_adjtotal packets trimmed/adjusted
u_int32_tips_adj_hwcsum_clrhwcksum discarded during adj
u_int32_tips_rxc_collisionsrx chaining collisions
u_int32_tips_rxc_chainedrx chains
u_int32_tips_rxc_notchainrx bypassed chaining
u_int32_tips_rxc_chainsz_gt2rx chain size greater than 2
u_int32_tips_rxc_chainsz_gt4rx chain size greater than 4
u_int32_tips_rxc_notlistcount of pkts through ip_input
u_int32_tips_raw_sappend_failsock append failed
u_int32_tips_necp_policy_dropNECP policy related drop
u_int32_tips_rcv_if_weak_matchpackets whose receive interface that passed the Weak ES address check
u_int32_tips_rcv_if_no_matchpackets whose receive interface did not pass the address check
u_int32_tips_input_ipf_droppackets dropped by IP filters
u_int32_tips_input_no_protopackets dropped for unsuppported IP protocol
u_int32_tips_src_addr_not_availoutgoing packets with source address not available

structip_linklocal_stat

size 16, align 4
u_int32_tiplls_in_total
u_int32_tiplls_in_badttl
u_int32_tiplls_out_total
u_int32_tiplls_out_badttl