add missing patch
This commit is contained in:
parent
ba72fc24d9
commit
a0e8728ac6
14
net/gated/patches/patch-if.c
Normal file
14
net/gated/patches/patch-if.c
Normal file
@ -0,0 +1,14 @@
|
||||
--- src/gated/if.c.orig Fri Mar 17 08:54:51 2000
|
||||
+++ src/gated/if.c Sun Jul 30 19:03:25 2000
|
||||
@@ -2863,9 +2863,10 @@
|
||||
case IFS_LOOPBACK:
|
||||
/* Add a host route to the loopback interface */
|
||||
|
||||
- BIT_SET(int_rtparms.rtp_state, RTS_NOADVISE);
|
||||
int_rtparms.rtp_dest = ifap->ifa_addr_local;
|
||||
int_rtparms.rtp_dest_mask = sockhostmask(ifap->ifa_addr_local);
|
||||
+ if (sock2ip(ifap->ifa_addr_local) == htonl(INADDR_LOOPBACK))
|
||||
+ BIT_SET(int_rtparms.rtp_state, RTS_NOADVISE);
|
||||
|
||||
ifap->ifa_rt = rt_add(&int_rtparms);
|
||||
break;
|
Loading…
Reference in New Issue
Block a user