diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2018-02-09 09:30:38 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2018-02-09 09:30:38 +0000 |
commit | d2ac36cfb9f9fcde05951627706f944e8dd59dab (patch) | |
tree | 1d8fe2d0f0881a2897ee1694c441f1eeace4ed2b /sys/net/if.c | |
parent | feeb3890ee3f4c9bf0ca401d23a6af823683a7c1 (diff) |
use struct in_addr to represent an address.
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index c788df82c08..89470799f25 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.539 2018/02/07 22:36:54 dlg Exp $ */ +/* $OpenBSD: if.c,v 1.540 2018/02/09 09:30:37 dlg Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -2109,6 +2109,14 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) if ((error = suser(p, 0)) != 0) break; /* FALLTHROUGH */ + case SIOCGETKALIVE: + case SIOCGLIFPHYADDR: + case SIOCGLIFPHYRTABLE: + case SIOCGLIFPHYTTL: + case SIOCGIFMEDIA: + case SIOCGVNETID: + case SIOCGIFPAIR: + case SIOCGIFPARENT: default: NET_LOCK(); error = ((*so->so_proto->pr_usrreq)(so, PRU_CONTROL, |