ip Struct Reference

#include <libc/netinet/ip.h>

struct ip

Detailed Description

Structure of an internet header, naked of options.

We declare ip_len and ip_off to be short, rather than u_short pragmatically since otherwise unsigned comparisons can result against negative integers quite easily, and fail in subtle ways.

Member Attribute Documentation

ip_dst

struct in_addr ip_srcip_dst

ip_hl

u_char ip_hl

ip_id

u_short ip_id

ip_len

shortip_len

ip_off

shortip_off

ip_p

u_char ip_p

ip_sum

u_short ip_sum

ip_tos

u_char ip_tos

ip_ttl

u_char ip_ttl

ip_v

u_char ip_v