netdev
[Top] [All Lists]

[PATCH] [2.6,2.4] Don't update MTU by invalid mtu value in RA

To: davem@xxxxxxxxxx
Subject: [PATCH] [2.6,2.4] Don't update MTU by invalid mtu value in RA
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Date: Thu, 18 Dec 2003 17:34:08 +0900 (JST)
Cc: netdev@xxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx, Hiroaki Kago <kago@xxxxxxxxxxxxxx>
Organization: USAGI Project
Sender: netdev-bounce@xxxxxxxxxxx
Hello.

D: Don't update MTU by invalid mtu value in RA message.
D: Notified by Hiroaki Kago <kago@xxxxxxxxxxxxxx>.

Thanks in advance.

===== net/ipv6/ndisc.c 1.58 vs edited =====
--- 1.58/net/ipv6/ndisc.c       Sat Sep 13 09:25:13 2003
+++ edited/net/ipv6/ndisc.c     Thu Dec 18 17:31:27 2003
@@ -1166,9 +1166,7 @@
                                ND_PRINTK0("NDISC: router announcement with mtu 
= %d\n",
                                           mtu);
                        }
-               }
-
-               if (in6_dev->cnf.mtu6 != mtu) {
+               } else if (in6_dev->cnf.mtu6 != mtu) {
                        in6_dev->cnf.mtu6 = mtu;
 
                        if (rt)

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

<Prev in Thread] Current Thread [Next in Thread>