diff options
Diffstat (limited to 'usr.sbin/ripd/interface.c')
-rw-r--r-- | usr.sbin/ripd/interface.c | 4 |
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"); } |