From 1df4f9d5fc0dabecca2ff9680db469442a1cfc73 Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Sat, 3 Jul 2010 04:44:53 +0000 Subject: Fix the naming of interfaces and variables for rdomains and rtables and make it possible to bind sockets (including listening sockets!) to rtables and not just rdomains. This changes the name of the system calls, socket option, and ioctl. After building with this you should remove the files /usr/share/man/cat2/[gs]etrdomain.0. Since this removes the existing [gs]etrdomain() system calls, the libc major is bumped. Written by claudio@, criticized^Wcritiqued by me --- sbin/route/route.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/route/route.c') diff --git a/sbin/route/route.c b/sbin/route/route.c index 163a85e157c..3a24b8c77d4 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.145 2010/06/27 07:57:59 guenther Exp $ */ +/* $OpenBSD: route.c,v 1.146 2010/07/03 04:44:51 guenther Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -1618,8 +1618,8 @@ rdomain(int argc, char **argv) { if (!argc) usage(NULL); - if (setrdomain(tableid) == -1) - err(1, "setrdomain"); + if (setrtable(tableid) == -1) + err(1, "setrtable"); execvp(*argv, argv); warn("%s", argv[0]); return (errno == ENOENT ? 127 : 126); -- cgit v1.2.3