Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net fix merge conflict.
details: https://anonhg.NetBSD.org/src/rev/cb4f3545b412
branches: trunk
changeset: 349880:cb4f3545b412
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 27 01:31:06 2016 +0000
description:
fix merge conflict.
diffstat:
sys/net/if_pppoe.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diffs (56 lines):
diff -r c8f4fcb4b052 -r cb4f3545b412 sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c Tue Dec 27 01:11:52 2016 +0000
+++ b/sys/net/if_pppoe.c Tue Dec 27 01:31:06 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.122 2016/12/26 23:21:49 christos Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.123 2016/12/27 01:31:06 christos Exp $ */
/*-
* Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.122 2016/12/26 23:21:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.123 2016/12/27 01:31:06 christos Exp $");
#ifdef _KERNEL_OPT
#include "pppoe.h"
@@ -235,7 +235,7 @@
struct ifnet *, krw_t);
static struct mbuf *pppoe_get_mbuf(size_t len);
-static void pppoe_ifattach_hook(void *, u_long, void *);
+static void pppoe_ifattach_hook(void *, unsigned long, void *);
static LIST_HEAD(pppoe_softc_head, pppoe_softc) pppoe_softc_list;
static krwlock_t pppoe_softc_list_lock;
@@ -1898,14 +1898,15 @@
}
#endif /* PPPOE_MPSAFE */
-static int
-pppoe_ifattach_hook(void *arg, struct mbuf **mp, struct ifnet *ifp, int dir)
+static void
+pppoe_ifattach_hook(void *arg, unsigned long cmd, void *arg2)
{
+ struct ifnet *ifp = arg2;
struct pppoe_softc *sc;
DECLARE_SPLNET_VARIABLE;
- if (mp != (struct mbuf **)PFIL_IFNET_DETACH)
- return 0;
+ if (cmd != PFIL_IFNET_DETACH)
+ return;
ACQUIRE_SPLNET();
rw_enter(&pppoe_softc_list_lock, RW_READER);
@@ -1930,8 +1931,6 @@
}
rw_exit(&pppoe_softc_list_lock);
RELEASE_SPLNET();
-
- return 0;
}
static void
Home |
Main Index |
Thread Index |
Old Index