summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_var.h
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-09-18 22:06:39 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-09-18 22:06:39 +0000
commit90175ecf691a7934faa9072f3a1ed18f4e91deb3 (patch)
tree68bd50ddf0e438117ac0a4f0bb898d7075a341c3 /sys/netinet/ip_var.h
parentc396a799db246d91ccfc784bce1f77a21e417f2a (diff)
Path MTU discovery based on NetBSD but with the decision to use the DF
flag delayed to ip_output(). That halves the code and reduces most of the route lookups. okay deraadt@
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r--sys/netinet/ip_var.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index 023b0e2f76e..cb39663c35d 100644
--- a/sys/netinet/ip_var.h
+++ b/sys/netinet/ip_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_var.h,v 1.13 2000/01/02 09:00:19 angelos Exp $ */
+/* $OpenBSD: ip_var.h,v 1.14 2000/09/18 22:06:38 provos Exp $ */
/* $NetBSD: ip_var.h,v 1.16 1996/02/13 23:43:20 christos Exp $ */
/*
@@ -154,12 +154,17 @@ struct ipstat {
#define IP_RAWOUTPUT 0x2 /* raw ip header exists */
#define IP_ROUTETOIF SO_DONTROUTE /* bypass routing tables */
#define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */
+#define IP_MTUDISC 0x0400 /* pmtu discovery, set DF */
#define IP_ENCAPSULATED 0x0800 /* encapsulated already */
struct ipstat ipstat;
LIST_HEAD(ipqhead, ipq) ipq; /* ip reass. queue */
int ip_defttl; /* default IP ttl */
+int ip_mtudisc; /* mtu discovery */
+u_int ip_mtudisc_timeout; /* seconds to timeout mtu discovery */
+struct rttimer_queue *ip_mtudisc_timeout_q;
+
int ip_ctloutput __P((int, struct socket *, int, int, struct mbuf **));
int ip_dooptions __P((struct mbuf *));
void ip_drain __P((void));