diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-11-09 21:14:48 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-11-09 21:14:48 +0000 |
commit | 4d873ebe99251c3e5fb6397497a0d18a109f0659 (patch) | |
tree | 9c013d19408e605ebf15394bd5347e2a23cf0690 /sbin/ifconfig/ifconfig.c | |
parent | d9c81e2df9aa71ae8275eb5b24a81cc962c12d8b (diff) |
when setting the rdomain, use the same define as the kernel
for the maximum route-id instead of a currently incorrect number
ok claudio@
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 4 |
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); |