Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/lagg Fix the wrong check of interface type
details: https://anonhg.NetBSD.org/src/rev/15b8fb45b5b7
branches: trunk
changeset: 1025545:15b8fb45b5b7
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Fri Nov 12 05:40:44 2021 +0000
description:
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
diffstat:
sys/net/lagg/if_lagg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8b49e84aca34 -r 15b8fb45b5b7 sys/net/lagg/if_lagg.c
--- a/sys/net/lagg/if_lagg.c Fri Nov 12 05:34:45 2021 +0000
+++ b/sys/net/lagg/if_lagg.c Fri Nov 12 05:40:44 2021 +0000
@@ -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 <reyk%openbsd.org@localhost>
@@ -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 @@
struct ethercom *ec_port;
int error;
- if (lp->lp_ifp->if_type != IFT_ETHER)
+ if (lp->lp_iftype != IFT_ETHER)
return 0;
error = 0;
Home |
Main Index |
Thread Index |
Old Index