diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-07-05 00:00:33 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-07-05 00:00:33 +0000 |
commit | 8c116a8234fe776200e6376c14ffadcac44890ef (patch) | |
tree | 0a37387a3d8395d40427b15f17f12a01dd049de0 | |
parent | 9bdf987b0ef0f70f974661c0095213f3baf8be38 (diff) |
backout 1.29; problem reported by Rukh w/ userland ppp.
-rw-r--r-- | sys/net/rtsock.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 1a94cba0eab..93d5de65566 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.29 2003/06/24 09:09:25 itojun Exp $ */ +/* $OpenBSD: rtsock.c,v 1.30 2003/07/05 00:00:32 itojun Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -272,22 +272,6 @@ route_output(struct mbuf *m, ...) } rt = (struct rtentry *)rn; rt->rt_refcnt++; - if (rtm->rtm_type != RTM_GET) {/* XXX: too grotty */ - struct radix_node *rn; - extern struct radix_node_head *mask_rnhead; - - if (Bcmp(dst, rt_key(rt), dst->sa_len) != 0) - senderr(ESRCH); - if (netmask && (rn = rn_search(netmask, - mask_rnhead->rnh_treetop))) - netmask = (struct sockaddr *)rn->rn_key; - for (rn = rt->rt_nodes; rn; rn = rn->rn_dupedkey) - if (netmask == (struct sockaddr *)rn->rn_mask) - break; - if (rn == 0) - senderr(ETOOMANYREFS); - rt = (struct rtentry *)rn; - } switch (rtm->rtm_type) { |