diff options
| author | 2006-06-16 16:49:39 +0000 | |
|---|---|---|
| committer | 2006-06-16 16:49:39 +0000 | |
| commit | c241aca8c4a396a55039d31c5df1e07dc49002fb (patch) | |
| tree | 0de7576d1d14290285c513dd027caa7fcd536dbb /sys/net/if_ethersubr.c | |
| parent | always change the working directory of the priv child to the root (diff) | |
| download | wireguard-openbsd-c241aca8c4a396a55039d31c5df1e07dc49002fb.tar.xz wireguard-openbsd-c241aca8c4a396a55039d31c5df1e07dc49002fb.zip | |
adjust functions dealing with the routing table to take a table ID as
parameter so they can work on alternate tables. table 0 hardcoded for
many callers yet, that will be adapted step by step.
input + ok claudio norby hshoexer
Diffstat (limited to 'sys/net/if_ethersubr.c')
| -rw-r--r-- | sys/net/if_ethersubr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index d9f54680d0c..83bc9a43cd5 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.102 2006/05/26 20:50:41 deraadt Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.103 2006/06/16 16:49:39 henning Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -253,7 +253,7 @@ ether_output(ifp0, m0, dst, rt0) senderr(ENETDOWN); if ((rt = rt0) != NULL) { if ((rt->rt_flags & RTF_UP) == 0) { - if ((rt0 = rt = rtalloc1(dst, 1)) != NULL) + if ((rt0 = rt = rtalloc1(dst, 1, 0)) != NULL) rt->rt_refcnt--; else senderr(EHOSTUNREACH); @@ -263,7 +263,7 @@ ether_output(ifp0, m0, dst, rt0) goto lookup; if (((rt = rt->rt_gwroute)->rt_flags & RTF_UP) == 0) { rtfree(rt); rt = rt0; - lookup: rt->rt_gwroute = rtalloc1(rt->rt_gateway, 1); + lookup: rt->rt_gwroute = rtalloc1(rt->rt_gateway, 1, 0); if ((rt = rt->rt_gwroute) == 0) senderr(EHOSTUNREACH); } |
