Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet SCTP: Use ifp->if_mtu rather than ND_IFINFO(ifp)...



details:   https://anonhg.NetBSD.org/src/rev/01eebc1bc7f6
branches:  trunk
changeset: 934445:01eebc1bc7f6
user:      roy <roy%NetBSD.org@localhost>
date:      Sat Jun 13 01:41:59 2020 +0000

description:
SCTP: Use ifp->if_mtu rather than ND_IFINFO(ifp)->linkmtu

diffstat:

 sys/netinet/sctp_output.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 7efbc8643e46 -r 01eebc1bc7f6 sys/netinet/sctp_output.c
--- a/sys/netinet/sctp_output.c Fri Jun 12 21:08:02 2020 +0000
+++ b/sys/netinet/sctp_output.c Sat Jun 13 01:41:59 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sctp_output.c,v 1.21 2019/12/26 04:44:10 msaitoh Exp $ */
+/*     $NetBSD: sctp_output.c,v 1.22 2020/06/13 01:41:59 roy Exp $ */
 /*     $KAME: sctp_output.c,v 1.48 2005/06/16 18:29:24 jinmei Exp $    */
 
 /*
@@ -30,7 +30,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sctp_output.c,v 1.21 2019/12/26 04:44:10 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sctp_output.c,v 1.22 2020/06/13 01:41:59 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ipsec.h"
@@ -2476,11 +2476,11 @@
                                }
                                rtcache_unref(rt, ro);
                        } else if (ifp) {
-                               if (ND_IFINFO(ifp)->linkmtu &&
-                                   (stcb->asoc.smallest_mtu > ND_IFINFO(ifp)->linkmtu)) {
+                               if (ifp->if_mtu &&
+                                   (stcb->asoc.smallest_mtu > ifp->if_mtu)) {
                                        sctp_mtu_size_reset(inp,
                                                            &stcb->asoc,
-                                                           ND_IFINFO(ifp)->linkmtu);
+                                                           ifp->if_mtu);
                                }
                        }
                }



Home | Main Index | Thread Index | Old Index