summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ripd/interface.c
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2011-06-21 17:31:07 +0000
committermikeb <mikeb@openbsd.org>2011-06-21 17:31:07 +0000
commit13ae2b572f8282cbf2cf28cf008318ea950727ec (patch)
tree2243a17a7624c0479642fd924828874cb65328b2 /usr.sbin/ripd/interface.c
parentremove some unnecessary casts. ok blambert deraadt kettenis matthew (diff)
downloadwireguard-openbsd-13ae2b572f8282cbf2cf28cf008318ea950727ec.tar.xz
wireguard-openbsd-13ae2b572f8282cbf2cf28cf008318ea950727ec.zip
Convert SO_RTABLE's protocol level to the SOL_SOCKET; ok claudio
Diffstat (limited to 'usr.sbin/ripd/interface.c')
-rw-r--r--usr.sbin/ripd/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ripd/interface.c b/usr.sbin/ripd/interface.c
index 5df24f922a9..c1b1c66db2c 100644
--- a/usr.sbin/ripd/interface.c
+++ b/usr.sbin/ripd/interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.c,v 1.9 2010/07/03 04:44:52 guenther Exp $ */
+/* $OpenBSD: interface.c,v 1.10 2011/06/21 17:31:07 mikeb Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -83,7 +83,7 @@ if_init(struct ripd_conf *xconf, struct iface *iface)
rdomain = 0;
else {
rdomain = ifr.ifr_rdomainid;
- if (setsockopt(iface->fd, IPPROTO_IP, SO_RTABLE, &rdomain,
+ if (setsockopt(iface->fd, SOL_SOCKET, SO_RTABLE, &rdomain,
sizeof(rdomain)) == -1)
fatal("failed to set rdomain");
}