diff options
author | qingli <qingli@FreeBSD.org> | 2006-06-05 21:20:21 +0000 |
---|---|---|
committer | qingli <qingli@FreeBSD.org> | 2006-06-05 21:20:21 +0000 |
commit | ee8156b6fd83f88c6c4b81ce9c8ed81f03d3e796 (patch) | |
tree | 0ed2f6a6f32a6fa3cccb8edd09e6743e7ab4e33a /usr.sbin/boot98cfg | |
parent | 280370a7dad3c18a14bdf5c30359d73f8c68695e (diff) | |
download | FreeBSD-src-ee8156b6fd83f88c6c4b81ce9c8ed81f03d3e796.zip FreeBSD-src-ee8156b6fd83f88c6c4b81ce9c8ed81f03d3e796.tar.gz |
Assuming the interface has an address of x.x.x.195, a mask of
255.255.255.0, and a default route with gateway x.x.x.1. Now if
the address mask is changed to something more specific, e.g.,
255.255.255.128, then after the mask change the default gateway
is no longer reachable.
Since the default route is still present in the routing table,
when the output code tries to resolve the address of the default
gateway in function rt_check(), again, the default route will be
returned by rtalloc1(). Because the lock is currently held on the
rtentry structure, one more attempt to hold the lock will trigger
a crash due to "lock recursed on non-recursive mutex ..."
This is a general problem. The fix checks for the above condition
so that an existing route entry is not mistaken for a new cloned
route. Approriately, an ENETUNREACH error is returned back to the
caller
Approved by: andre
Diffstat (limited to 'usr.sbin/boot98cfg')
0 files changed, 0 insertions, 0 deletions