diff options
author | andre <andre@FreeBSD.org> | 2005-11-19 14:01:32 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-11-19 14:01:32 +0000 |
commit | 5d67ac3cb1da24760c07ff17c629966078b6f747 (patch) | |
tree | 76e3a2879e1d820c2cbc4cf223e9c4e3c3f72aa2 /sys/netinet/ip_var.h | |
parent | 9ea441a30903994510472fe182179780de64f9f6 (diff) | |
download | FreeBSD-src-5d67ac3cb1da24760c07ff17c629966078b6f747.zip FreeBSD-src-5d67ac3cb1da24760c07ff17c629966078b6f747.tar.gz |
Move MAX_IPOPTLEN and struct ipoption back into ip_var.h as
userland programs depend on it.
Pointed out by: le
Sponsored by: TCP/IP Optimization Fundraise 2005
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r-- | sys/netinet/ip_var.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index 49a6f9a..6d0a122 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -66,6 +66,19 @@ struct ipq { #endif /* _KERNEL */ /* + * Structure stored in mbuf in inpcb.ip_options + * and passed to ip_output when ip options are in use. + * The actual length of the options (including ipopt_dst) + * is in m_len. + */ +#define MAX_IPOPTLEN 40 + +struct ipoption { + struct in_addr ipopt_dst; /* first-hop dst if source routed */ + char ipopt_list[MAX_IPOPTLEN]; /* options proper */ +}; + +/* * Structure attached to inpcb.ip_moptions and * passed to ip_output when IP multicast options are in use. */ |