Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use interface MTU

  • Loading branch information...
commit 843b840de1ceca0becbac58d733487e8caf1a54b 1 parent 61644da
itojun authored
View
5 kame/sys/netinet6/mip6.c
@@ -1,4 +1,4 @@
-/* $KAME: mip6.c,v 1.30 2000/12/03 00:53:59 itojun Exp $ */
+/* $KAME: mip6.c,v 1.31 2001/01/15 15:42:43 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, 1998, 1999 and 2000 WIDE Project.
@@ -928,7 +928,8 @@ u_int32_t lifetime; /* Proposed lifetime in the BU */
return IPPROTO_DONE;
bzero(opt, sizeof(struct ip6_pktopts));
- opt->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ opt->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ opt->ip6po_mtu = -1; /* -1 means to use default mtu */
m_ip6 = mip6_create_ip6hdr(ip6_src, ip6_dst, IPPROTO_NONE);
if(m_ip6 == NULL)
return IPPROTO_DONE;
View
11 kame/sys/netinet6/mip6_io.c
@@ -1,4 +1,4 @@
-/* $KAME: mip6_io.c,v 1.9 2000/05/05 11:01:02 sumikawa Exp $ */
+/* $KAME: mip6_io.c,v 1.10 2001/01/15 15:42:45 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, 1998, 1999 and 2000 WIDE Project.
@@ -566,7 +566,8 @@ struct ip6_pktopts **pktopt; /* Packet Extension headers, options and data */
if (opt == NULL)
return ENOBUFS;
bzero(opt, sizeof(struct ip6_pktopts));
- opt->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ opt->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ opt->ip6po_mtu = -1; /* -1 means to use default mtu */
}
mip6_dest_offset(opt->ip6po_dest2, &off);
@@ -623,7 +624,8 @@ struct ip6_pktopts **pktopt; /* Packet Extension headers, options and data */
if (opt == NULL)
return ENOBUFS;
bzero(opt, sizeof(struct ip6_pktopts));
- opt->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ opt->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ opt->ip6po_mtu = -1; /* -1 means to use default mtu */
}
mip6_dest_offset(opt->ip6po_dest2, &off);
@@ -707,7 +709,8 @@ struct mip6_bc *bcp; /* Binding Cache list entry */
if (opt_local == NULL)
return ENOBUFS;
bzero(opt_local, sizeof(struct ip6_pktopts));
- opt_local->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ opt_local->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ opt_local->ip6po_mtu = -1; /* -1 means to use default mtu */
opt_local->ip6po_rhinfo.ip6po_rhi_rthdr =
mip6_create_rh(&bcp->coa, IPPROTO_IP);
View
11 kame/sys/netinet6/mip6_mn.c
@@ -1,4 +1,4 @@
-/* $KAME: mip6_mn.c,v 1.16 2000/06/04 03:31:27 itojun Exp $ */
+/* $KAME: mip6_mn.c,v 1.17 2001/01/15 15:42:45 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, 1998, 1999 and 2000 WIDE Project.
@@ -1248,7 +1248,8 @@ struct mip6_subbuf *subbuf;
return ENOBUFS;
bzero(pktopt, sizeof(struct ip6_pktopts));
- pktopt->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ pktopt->ip6po_hlim = -1; /* -1 means to use default hop limit */
+ pktopt->ip6po_mtu = -1; /* -1 means to use default mtu */
m_ip6 = mip6_create_ip6hdr(&bulp->bind_addr, &bulp->dst_addr,
IPPROTO_NONE);
if(m_ip6 == NULL) {
@@ -2429,7 +2430,8 @@ mip6_outq_flush()
continue;
}
bzero(pktopt, sizeof(struct ip6_pktopts));
- pktopt->ip6po_hlim = -1; /* -1 use def hop limit */
+ pktopt->ip6po_hlim = -1; /* -1 use def hop limit */
+ pktopt->ip6po_mtu = -1; /* -1 use def mtu */
opt = (struct mip6_opt *)outp->opt;
off = 2;
@@ -2574,7 +2576,8 @@ void *arg; /* Not used */
continue;
}
bzero(pktopt, sizeof(struct ip6_pktopts));
- pktopt->ip6po_hlim = -1; /* -1 default hop limit */
+ pktopt->ip6po_hlim = -1; /* -1 default hop limit */
+ pktopt->ip6po_mtu = -1; /* -1 default mtu */
opt = (struct mip6_opt *)outp->opt;
off = 2;
Please sign in to comment.
Something went wrong with that request. Please try again.