Source-Changes-HG archive

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

[src/trunk]: src/sys/net/lagg lagg: reject a vlan interface that is not confi...



details:   https://anonhg.NetBSD.org/src/rev/00933e4d52c3
branches:  trunk
changeset: 989896:00933e4d52c3
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Tue Oct 19 08:02:42 2021 +0000

description:
lagg: reject a vlan interface that is not configured

The vlan I/F has no MAC address used in LACP.

diffstat:

 sys/net/lagg/if_lagg.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 31597f5db19b -r 00933e4d52c3 sys/net/lagg/if_lagg.c
--- a/sys/net/lagg/if_lagg.c    Tue Oct 19 07:57:15 2021 +0000
+++ b/sys/net/lagg/if_lagg.c    Tue Oct 19 08:02:42 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_lagg.c,v 1.15 2021/10/19 07:52:33 yamaguchi Exp $   */
+/*     $NetBSD: if_lagg.c,v 1.16 2021/10/19 08:02:42 yamaguchi Exp $   */
 
 /*
  * Copyright (c) 2005, 2006 Reyk Floeter <reyk%openbsd.org@localhost>
@@ -20,7 +20,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.15 2021/10/19 07:52:33 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.16 2021/10/19 08:02:42 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -2271,7 +2271,6 @@
 
        switch (ifp_port->if_type) {
        case IFT_ETHER:
-       case IFT_L2VLAN:
        case IFT_L2TP:
                if_type = IFT_IEEE8023ADLAG;
                break;



Home | Main Index | Thread Index | Old Index