Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/netinet6 Pull up revision 1.83 (requested by itojun...



details:   https://anonhg.NetBSD.org/src/rev/9280dd3ffb5d
branches:  netbsd-2-0
changeset: 561372:9280dd3ffb5d
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 14 18:01:09 2004 +0000

description:
Pull up revision 1.83 (requested by itojun in ticket #468):
implement IPV6_USE_MIN_MTU sockopt.  needed by bind9 + EDNS0 + big receive buffer.

diffstat:

 sys/netinet6/ip6_output.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (56 lines):

diff -r 6ef655a1ba36 -r 9280dd3ffb5d sys/netinet6/ip6_output.c
--- a/sys/netinet6/ip6_output.c Mon Jun 14 18:01:01 2004 +0000
+++ b/sys/netinet6/ip6_output.c Mon Jun 14 18:01:09 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_output.c,v 1.82 2004/03/23 18:21:38 martti Exp $   */
+/*     $NetBSD: ip6_output.c,v 1.82.2.1 2004/06/14 18:01:09 tron Exp $ */
 /*     $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $    */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.82 2004/03/23 18:21:38 martti Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.82.2.1 2004/06/14 18:01:09 tron Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -1348,6 +1348,7 @@
                        case IPV6_RTHDR:
                        case IPV6_FAITH:
                        case IPV6_V6ONLY:
+                       case IPV6_USE_MIN_MTU:
                                if (!m || m->m_len != sizeof(int)) {
                                        error = EINVAL;
                                        break;
@@ -1407,6 +1408,10 @@
                                        OPTSET(IN6P_FAITH);
                                        break;
 
+                               case IPV6_USE_MIN_MTU:
+                                       OPTSET(IN6P_MINMTU);
+                                       break;
+
                                case IPV6_V6ONLY:
                                        /*
                                         * make setsockopt(IPV6_V6ONLY)
@@ -1527,6 +1532,7 @@
                        case IPV6_RTHDR:
                        case IPV6_FAITH:
                        case IPV6_V6ONLY:
+                       case IPV6_USE_MIN_MTU:
                                *mp = m = m_get(M_WAIT, MT_SOOPTS);
                                m->m_len = sizeof(int);
                                switch (optname) {
@@ -1589,6 +1595,10 @@
                                case IPV6_V6ONLY:
                                        optval = OPTBIT(IN6P_IPV6_V6ONLY);
                                        break;
+
+                               case IPV6_USE_MIN_MTU:
+                                       optval = OPTBIT(IN6P_MINMTU);
+                                       break;
                                }
                                *mtod(m, int *) = optval;
                                break;



Home | Main Index | Thread Index | Old Index