diff options
author | julian <julian@FreeBSD.org> | 1995-12-04 10:36:02 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1995-12-04 10:36:02 +0000 |
commit | e944827d9c85d7b56310f877b19844d79856ab38 (patch) | |
tree | 4e7977bfbeb2363e692654eb129a82c8cb9648fc /usr.sbin/IPXrouted/af.c | |
parent | 9e563b804f0b152cd79e2e40657f65f73b987916 (diff) | |
download | FreeBSD-src-e944827d9c85d7b56310f877b19844d79856ab38.zip FreeBSD-src-e944827d9c85d7b56310f877b19844d79856ab38.tar.gz |
Submitted by: John Hay
patches to allow correct deletion of IPX routes
Diffstat (limited to 'usr.sbin/IPXrouted/af.c')
-rw-r--r-- | usr.sbin/IPXrouted/af.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/IPXrouted/af.c b/usr.sbin/IPXrouted/af.c index 28c231c..e7d6d9b 100644 --- a/usr.sbin/IPXrouted/af.c +++ b/usr.sbin/IPXrouted/af.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: af.c,v 1.4 1995/10/11 18:57:05 jhay Exp $ + * $Id: af.c,v 1.1 1995/10/26 21:28:13 julian Exp $ */ #ifndef lint @@ -194,10 +194,12 @@ struct sockaddr_ipx *sipx; { register u_short *s = sipx->sipx_addr.x_host.s_host; + if ((s[0]==0x0000) && (s[1]==0x0000) && (s[2]==0x0000)) + return (0); if ((s[0]==0xffff) && (s[1]==0xffff) && (s[2]==0xffff)) return (0); - else - return (1); + + return (1); } void |