summaryrefslogtreecommitdiffstats
path: root/sys/net/rtsock.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2016-09-05 15:12:29 +0000
committerclaudio <claudio@openbsd.org>2016-09-05 15:12:29 +0000
commitdd20b3486bfce1ed44e8e2e1c9d29df24fc1bc8f (patch)
tree74f4c7f5c61103ca8ab53c1c93e0e58eaa37ec32 /sys/net/rtsock.c
parentPrint route labels in double quotes since they can contain spaces in the name. (diff)
downloadwireguard-openbsd-dd20b3486bfce1ed44e8e2e1c9d29df24fc1bc8f.tar.xz
wireguard-openbsd-dd20b3486bfce1ed44e8e2e1c9d29df24fc1bc8f.zip
Kill raw_ctlinput() this function is INCOMPLETE since rev 1.1 and is not
needed. All callers using the protosw pr_ctlinput pointer do a NULL check before so there is no need to provide the function.
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r--sys/net/rtsock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index 06a34255ad9..fbcf89230bb 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.202 2016/09/04 09:39:01 claudio Exp $ */
+/* $OpenBSD: rtsock.c,v 1.203 2016/09/05 15:12:30 claudio Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -1591,7 +1591,7 @@ extern struct domain routedomain; /* or at least forward */
struct protosw routesw[] = {
{ SOCK_RAW, &routedomain, 0, PR_ATOMIC|PR_ADDR|PR_WANTRCVD,
- route_input, route_output, raw_ctlinput, route_ctloutput,
+ route_input, route_output, 0, route_ctloutput,
route_usrreq,
raw_init, 0, 0, 0,
sysctl_rtable,