summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2011-06-21 17:31:08 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2011-06-21 17:31:08 +0000
commite7884bf87149523a28dac8c81b890d680655cbd8 (patch)
tree6fad4366ab0f38e88691278a55b07242076ede3d /usr.sbin/ospfd
parentb50edea001b4bd82ae333fbd20b35c63b80e60cc (diff)
Convert SO_RTABLE's protocol level to the SOL_SOCKET; ok claudio
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r--usr.sbin/ospfd/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/interface.c b/usr.sbin/ospfd/interface.c
index a7e30359751..ea53ed06cee 100644
--- a/usr.sbin/ospfd/interface.c
+++ b/usr.sbin/ospfd/interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interface.c,v 1.72 2011/05/09 12:24:41 claudio Exp $ */
+/* $OpenBSD: interface.c,v 1.73 2011/06/21 17:31:07 mikeb Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -257,7 +257,7 @@ if_init(struct ospfd_conf *xconf, struct iface *iface)
rdomain = 0;
else {
rdomain = ifr.ifr_rdomainid;
- if (setsockopt(iface->fd, IPPROTO_IP, SO_RTABLE,
+ if (setsockopt(iface->fd, SOL_SOCKET, SO_RTABLE,
&rdomain, sizeof(rdomain)) == -1)
fatal("failed to set rdomain");
}