Module Name: src Committed By: yamaguchi Date: Fri Nov 12 05:40:44 UTC 2021
Modified Files: src/sys/net/lagg: if_lagg.c Log Message: Fix the wrong check of interface type - lp->lp_iftype: original ifnet::if_type - lp->lp_ifp->if_type: current ifnet::if_type - always IFT_IEEE8023ADLAG To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/net/lagg/if_lagg.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/lagg/if_lagg.c diff -u src/sys/net/lagg/if_lagg.c:1.22 src/sys/net/lagg/if_lagg.c:1.23 --- src/sys/net/lagg/if_lagg.c:1.22 Fri Nov 12 05:34:45 2021 +++ src/sys/net/lagg/if_lagg.c Fri Nov 12 05:40:44 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: if_lagg.c,v 1.22 2021/11/12 05:34:45 yamaguchi Exp $ */ +/* $NetBSD: if_lagg.c,v 1.23 2021/11/12 05:40:44 yamaguchi Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter <r...@openbsd.org> @@ -20,7 +20,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.22 2021/11/12 05:34:45 yamaguchi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.23 2021/11/12 05:40:44 yamaguchi Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -1205,7 +1205,7 @@ lagg_port_vlan_cb(struct lagg_port *lp, struct ethercom *ec_port; int error; - if (lp->lp_ifp->if_type != IFT_ETHER) + if (lp->lp_iftype != IFT_ETHER) return 0; error = 0;