summaryrefslogtreecommitdiff
path: root/sys/net/rtsock.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2018-07-10 20:28:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2018-07-10 20:28:35 +0000
commit5664d59c988a2e61d95b02f5a78726489207c27d (patch)
tree42c5d3ea31f0da211626abd21e55598b48229b1d /sys/net/rtsock.c
parentd77627b5930e41d92a79cfd3d7b792bff0901edf (diff)
Remove net/raw_cb.h from includes and replace the RAWSNDQ, RAWRCVQ with
protocol specific ones. OK mpi@
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r--sys/net/rtsock.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index 2b6e0b7115f..cfd2856dc47 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.278 2018/07/10 10:02:14 bluhm Exp $ */
+/* $OpenBSD: rtsock.c,v 1.279 2018/07/10 20:28:34 claudio Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -76,7 +76,6 @@
#include <net/if_dl.h>
#include <net/if_var.h>
#include <net/route.h>
-#include <net/raw_cb.h>
#include <netinet/in.h>
@@ -95,6 +94,9 @@
#include <sys/kernel.h>
#include <sys/timeout.h>
+#define ROUTESNDQ 8192
+#define ROUTERCVQ 8192
+
const struct sockaddr route_src = { 2, PF_ROUTE, };
struct walkarg {
@@ -300,7 +302,7 @@ route_attach(struct socket *so, int proto)
if (curproc == NULL)
error = EACCES;
else
- error = soreserve(so, RAWSNDQ, RAWRCVQ);
+ error = soreserve(so, ROUTESNDQ, ROUTERCVQ);
if (error) {
free(rop, M_PCB, sizeof(struct rtpcb));
return (error);