diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-15 13:44:04 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-15 13:44:04 +0000 |
commit | 0c6966d1162eeac4cb5e7a8f6f4b9f379e3609fd (patch) | |
tree | 0bf4001472442cce61d181b1e79be6819bc6331d /sys | |
parent | 19dc1ce72d84e5878f08c63b2962688f626fe1c4 (diff) |
Return EOPNOTSUPP instead of calling a function to do only that.
ok phessler@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netmpls/mpls_raw.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/netmpls/mpls_raw.c b/sys/netmpls/mpls_raw.c index a2e91c219da..1d740bff695 100644 --- a/sys/netmpls/mpls_raw.c +++ b/sys/netmpls/mpls_raw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_raw.c,v 1.13 2015/11/24 13:37:16 mpi Exp $ */ +/* $OpenBSD: mpls_raw.c,v 1.14 2016/11/15 13:44:03 mpi Exp $ */ /* * Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project. @@ -60,19 +60,6 @@ int mpls_mapttl_ip6 = 0; int *mplsctl_vars[MPLSCTL_MAXID] = MPLSCTL_VARS; -int mpls_control(struct socket *, u_long, caddr_t, struct ifnet *); - -/* - * Generic MPLS control operations (ioctl's). - * Ifp is 0 if not an interface-specific ioctl. - */ -/* ARGSUSED */ -int -mpls_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp) -{ - return (EOPNOTSUPP); -} - int mpls_raw_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, struct mbuf *control, struct proc *p) @@ -84,8 +71,7 @@ mpls_raw_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, #endif /* MPLS_DEBUG */ if (req == PRU_CONTROL) - return (mpls_control(so, (u_long)m, (caddr_t)nam, - (struct ifnet *)control)); + return (EOPNOTSUPP); switch (req) { case PRU_ATTACH: |