summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2005-11-19 14:01:32 +0000
committerandre <andre@FreeBSD.org>2005-11-19 14:01:32 +0000
commit5d67ac3cb1da24760c07ff17c629966078b6f747 (patch)
tree76e3a2879e1d820c2cbc4cf223e9c4e3c3f72aa2 /sys/netinet
parent9ea441a30903994510472fe182179780de64f9f6 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/netinet/ip_options.h13
-rw-r--r--sys/netinet/ip_var.h13
2 files changed, 13 insertions, 13 deletions
diff --git a/sys/netinet/ip_options.h b/sys/netinet/ip_options.h
index b7c0050..ed032c7 100644
--- a/sys/netinet/ip_options.h
+++ b/sys/netinet/ip_options.h
@@ -34,14 +34,6 @@
#ifndef _NETINET_IP_OPTIONS_H_
#define _NETINET_IP_OPTIONS_H_
-/*
- * 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 ipoptrt {
struct in_addr dst; /* final destination */
char nop; /* one NOP to align */
@@ -55,11 +47,6 @@ struct ipopt_tag {
struct ipoptrt ip_srcrt;
};
-struct ipoption {
- struct in_addr ipopt_dst; /* first-hop dst if source routed */
- char ipopt_list[MAX_IPOPTLEN]; /* options proper */
-};
-
extern int ip_doopts; /* process or ignore IP options */
int ip_dooptions(struct mbuf *, int);
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.
*/
OpenPOWER on IntegriCloud