summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2010-11-09 21:14:47 +0000
committerjsg <jsg@openbsd.org>2010-11-09 21:14:47 +0000
commit17e1dd4f72a7ebcf6cbf048cb4560a0d1960a3ef (patch)
tree34cdec00b1de60a2999b487e0acfe44ac8c81471
parentcorrect some bit tests spotted by -Wparentheses in newer gcc. (diff)
downloadwireguard-openbsd-17e1dd4f72a7ebcf6cbf048cb4560a0d1960a3ef.tar.xz
wireguard-openbsd-17e1dd4f72a7ebcf6cbf048cb4560a0d1960a3ef.zip
when setting the rdomain, use the same define as the kernel
for the maximum route-id instead of a currently incorrect number ok claudio@
-rw-r--r--sbin/ifconfig/ifconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index e09aa6f2a6d..607493a3d79 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.241 2010/11/01 05:24:58 deraadt Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.242 2010/11/09 21:14:47 jsg Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -4876,7 +4876,7 @@ setinstance(const char *id, int param)
const char *errmsg = NULL;
int rdomainid;
- rdomainid = strtonum(id, 0, 128, &errmsg);
+ rdomainid = strtonum(id, 0, RT_TABLEID_MAX, &errmsg);
if (errmsg)
errx(1, "rdomain %s: %s", id, errmsg);