-/* $OpenBSD: if.c,v 1.395 2015/10/25 11:58:11 mpi Exp $ */
+/* $OpenBSD: if.c,v 1.396 2015/10/25 12:05:40 mpi Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
ifrq.ifr_flags = ifp->if_flags;
(*ifp->if_ioctl)(ifp, SIOCSIFFLAGS, (caddr_t)&ifrq);
- TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) {
- if (ifa->ifa_addr != NULL &&
- ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit((struct arpcom *)ifp, ifa);
- }
#ifdef INET6
/*
* Update the link-local address. Don't do it if we're
-/* $OpenBSD: if_pair.c,v 1.2 2015/10/24 11:01:39 reyk Exp $ */
+/* $OpenBSD: if_pair.c,v 1.3 2015/10/25 12:05:40 mpi Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: if_trunk.c,v 1.121 2015/10/08 13:58:07 mikeb Exp $ */
+/* $OpenBSD: if_trunk.c,v 1.122 2015/10/25 12:05:40 mpi Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
struct trunk_reqall *ra = (struct trunk_reqall *)data;
struct trunk_reqport *rp = (struct trunk_reqport *)data, rpbuf;
struct ifreq *ifr = (struct ifreq *)data;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct trunk_port *tp;
struct ifnet *tpif;
int s, i, error = 0;
break;
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&tr->tr_ac, ifa);
- error = ENETRESET;
- break;
+ /* FALLTHROUGH */
case SIOCSIFFLAGS:
error = ENETRESET;
break;
-/* $OpenBSD: if_tun.c,v 1.158 2015/10/25 11:58:11 mpi Exp $ */
+/* $OpenBSD: if_tun.c,v 1.159 2015/10/25 12:05:40 mpi Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
{
struct tun_softc *tp = (struct tun_softc *)(ifp->if_softc);
struct ifreq *ifr = (struct ifreq *)data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int error = 0, s;
s = splnet();
switch (cmd) {
case SIOCSIFADDR:
tun_init(tp);
- TUNDEBUG(("%s: address set\n", ifp->if_xname));
- if (tp->tun_flags & TUN_LAYER2) {
- switch (ifa->ifa_addr->sa_family) {
- case AF_INET:
- arp_ifinit(&tp->arpcom, ifa);
- break;
- default:
- break;
- }
- }
break;
case SIOCSIFDSTADDR:
tun_init(tp);
-/* $OpenBSD: if_vether.c,v 1.24 2015/05/23 08:31:05 mpi Exp $ */
+/* $OpenBSD: if_vether.c,v 1.25 2015/10/25 12:05:40 mpi Exp $ */
/*
* Copyright (c) 2009 Theo de Raadt
vetherioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct vether_softc *sc = (struct vether_softc *)ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int error = 0, link_state;
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
-/* $OpenBSD: if_vlan.c,v 1.145 2015/10/05 19:05:09 uebayasi Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.146 2015/10/25 12:05:40 mpi Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
switch (cmd) {
case SIOCSIFADDR:
- if (ifv->ifv_p != NULL) {
+ if (ifv->ifv_p != NULL)
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ifv->ifv_ac, ifa);
- } else
+ else
error = EINVAL;
break;
-/* $OpenBSD: if_vxlan.c,v 1.32 2015/10/23 01:19:04 dlg Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.33 2015/10/25 12:05:40 mpi Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
vxlanioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct vxlan_softc *sc = (struct vxlan_softc *)ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
struct if_laddrreq *lifr = (struct if_laddrreq *)data;
int error = 0, s;
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS: