Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices...
details: https://anonhg.NetBSD.org/src/rev/49a14dd569ab
branches: trunk
changeset: 357194:49a14dd569ab
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Oct 30 16:01:19 2017 +0000
description:
Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices that don't use if_link_state_change
diffstat:
sys/net/if_l2tp.c | 7 ++++---
sys/net/if_tap.c | 5 +++--
sys/net/if_tun.c | 5 +++--
sys/net/if_vlan.c | 6 +++---
4 files changed, 13 insertions(+), 10 deletions(-)
diffs (107 lines):
diff -r a991934ee3dd -r 49a14dd569ab sys/net/if_l2tp.c
--- a/sys/net/if_l2tp.c Mon Oct 30 15:59:23 2017 +0000
+++ b/sys/net/if_l2tp.c Mon Oct 30 16:01:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_l2tp.c,v 1.13 2017/10/30 11:24:04 knakahara Exp $ */
+/* $NetBSD: if_l2tp.c,v 1.14 2017/10/30 16:01:19 ozaki-r Exp $ */
/*
* Copyright (c) 2017 Internet Initiative Japan Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_l2tp.c,v 1.13 2017/10/30 11:24:04 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_l2tp.c,v 1.14 2017/10/30 16:01:19 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -265,7 +265,8 @@
sc->l2tp_ec.ec_if.if_addrlen = 0;
sc->l2tp_ec.ec_if.if_mtu = L2TP_MTU;
sc->l2tp_ec.ec_if.if_flags = IFF_POINTOPOINT|IFF_MULTICAST|IFF_SIMPLEX;
- sc->l2tp_ec.ec_if.if_extflags = IFEF_OUTPUT_MPSAFE|IFEF_START_MPSAFE;
+ sc->l2tp_ec.ec_if.if_extflags = IFEF_OUTPUT_MPSAFE |
+ IFEF_START_MPSAFE | IFEF_NO_LINK_STATE_CHANGE;
sc->l2tp_ec.ec_if.if_ioctl = l2tp_ioctl;
sc->l2tp_ec.ec_if.if_output = l2tp_output;
sc->l2tp_ec.ec_if.if_type = IFT_L2TP;
diff -r a991934ee3dd -r 49a14dd569ab sys/net/if_tap.c
--- a/sys/net/if_tap.c Mon Oct 30 15:59:23 2017 +0000
+++ b/sys/net/if_tap.c Mon Oct 30 16:01:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tap.c,v 1.100 2017/10/23 09:32:33 msaitoh Exp $ */
+/* $NetBSD: if_tap.c,v 1.101 2017/10/30 16:01:19 ozaki-r Exp $ */
/*
* Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.100 2017/10/23 09:32:33 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.101 2017/10/30 16:01:19 ozaki-r Exp $");
#if defined(_KERNEL_OPT)
@@ -370,6 +370,7 @@
strcpy(ifp->if_xname, device_xname(self));
ifp->if_softc = sc;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+ ifp->if_extflags = IFEF_NO_LINK_STATE_CHANGE;
ifp->if_ioctl = tap_ioctl;
ifp->if_start = tap_start;
ifp->if_stop = tap_stop;
diff -r a991934ee3dd -r 49a14dd569ab sys/net/if_tun.c
--- a/sys/net/if_tun.c Mon Oct 30 15:59:23 2017 +0000
+++ b/sys/net/if_tun.c Mon Oct 30 16:01:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tun.c,v 1.140 2017/10/25 08:12:40 maya Exp $ */
+/* $NetBSD: if_tun.c,v 1.141 2017/10/30 16:01:19 ozaki-r Exp $ */
/*
* Copyright (c) 1988, Julian Onions <jpo%cs.nott.ac.uk@localhost>
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.140 2017/10/25 08:12:40 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.141 2017/10/30 16:01:19 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -247,6 +247,7 @@
ifp->if_start = tunstart;
#endif
ifp->if_flags = IFF_POINTOPOINT;
+ ifp->if_extflags = IFEF_NO_LINK_STATE_CHANGE;
ifp->if_type = IFT_TUNNEL;
ifp->if_snd.ifq_maxlen = ifqmaxlen;
ifp->if_collisions = 0;
diff -r a991934ee3dd -r 49a14dd569ab sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Mon Oct 30 15:59:23 2017 +0000
+++ b/sys/net/if_vlan.c Mon Oct 30 16:01:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vlan.c,v 1.105 2017/10/23 09:31:18 msaitoh Exp $ */
+/* $NetBSD: if_vlan.c,v 1.106 2017/10/30 16:01:19 ozaki-r Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.105 2017/10/23 09:31:18 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.106 2017/10/30 16:01:19 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -338,7 +338,7 @@
if_initname(ifp, ifc->ifc_name, unit);
ifp->if_softc = ifv;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
- ifp->if_extflags = IFEF_START_MPSAFE;
+ ifp->if_extflags = IFEF_START_MPSAFE | IFEF_NO_LINK_STATE_CHANGE;
ifp->if_start = vlan_start;
ifp->if_transmit = vlan_transmit;
ifp->if_ioctl = vlan_ioctl;
Home |
Main Index |
Thread Index |
Old Index