- upgrade to gated 3.5.11

- add patch from FreeBSD port:
Only flag the loopback address (127.0.0.1) on loopback interfaces
with the noadvice bit.  Other IP# numbers are valid and should be
advertised.
This commit is contained in:
brad 1999-04-20 22:26:30 +00:00
parent 2123f33591
commit c9468e0bfc
5 changed files with 32 additions and 17 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.4 1999/04/14 12:23:24 brad Exp $
# $OpenBSD: Makefile,v 1.5 1999/04/20 22:26:30 brad Exp $
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
DISTNAME= gated-3-5-7
PKGNAME= gated-3.5.7
DISTNAME= gated-3-5-11
PKGNAME= gated-3.5.11
CATEGORIES= net
NO_CDROM= "LIC: requires licence for redistribution"
MASTER_SITES= ftp://ftp.gated.merit.edu/net-research/gated/

View File

@ -1,3 +1,3 @@
MD5 (gated-3-5-7.tar.gz) = cf53df3121f520671dd85d86d1c043f9
RMD160 (gated-3-5-7.tar.gz) = 84c253fd8ca44649cfdcd83d61e563cd253c06c3
SHA1 (gated-3-5-7.tar.gz) = ee66eebc5b63495357f7118787a4e50a7c4d7316
MD5 (gated-3-5-11.tar.gz) = 6b192df3bdbda6d4f2222c93ac725e75
RMD160 (gated-3-5-11.tar.gz) = 16624c1e2229fb783dd3bbc5759945e5e368c1f3
SHA1 (gated-3-5-11.tar.gz) = a6abdc59beb881dee06c9433b690fa6eab99fe07

View File

@ -1,8 +1,8 @@
--- src/configs/freebsd.orig Thu Jul 2 14:12:48 1998
+++ src/configs/freebsd Sun Mar 14 11:09:48 1999
--- src/configs/freebsd.orig Tue Apr 20 18:09:34 1999
+++ src/configs/freebsd Tue Apr 20 18:13:06 1999
@@ -1,27 +1,29 @@
#
# $Id: patch-aa,v 1.2 1999/03/14 19:17:03 brad Exp $
# $Id: patch-aa,v 1.3 1999/04/20 22:26:32 brad Exp $
-# Configuration for freebsd-2.0 alpha (i386)
+# Configuration for FreeBSD-3.0 (and hopefully 2.2)
#
@ -26,13 +26,13 @@
-lflags -p -C -I
+lflags -p -Cfe
+
+yflags -d -v
+yflags -d -v
mkdep mkdep -flag -MM
-options INCLUDE_UNISTD INCLUDE_PATHS GID_T=int
-options POSIX_SIGNALS HAVE_WAITPID
+options INCLUDE_UNISTD INCLUDE_PATHS INCLUDE_IF_NEEDS_TIME GID_T=gid_t
+options INCLUDE_UNISTD INCLUDE_PATHS INCLUDE_IF_NEEDS_TIME GID_T=int
+options POSIX_SIGNALS HAVE_WAITPID USE_SETSID
options VARIABLE_MASKS SOCKET_LENGTHS SOCKADDR_DL INCLUDE_IF_DL
options KRT_RTREAD_KINFO KRT_IFREAD_KINFO KRT_RT_SOCK USE_SYSCTL
@ -42,4 +42,4 @@
#protocols bgp egp icmp rip ospf iso slsp isis rdisc
-protocols icmp rip ospf
+protocols bgp icmp rip ospf rdisc
+protocols bgp icmp rip ospf rdisc

View File

@ -1,6 +1,6 @@
--- src/task.c.orig Sun Mar 14 13:21:49 1999
+++ src/task.c Sun Mar 14 13:24:50 1999
@@ -5862,12 +5862,20 @@
--- src/task.c.orig Wed Feb 17 18:32:18 1999
+++ src/task.c Tue Apr 20 18:16:01 1999
@@ -5903,12 +5903,20 @@
}
/* Remove our association with a controling tty */
@ -22,7 +22,7 @@
task_signal_ignore(SIGHUP);
@@ -5886,7 +5894,7 @@
@@ -5927,7 +5935,7 @@
/* Parent */
exit(0);
}
@ -31,7 +31,7 @@
t = setpgrp(0, getpid());
if (t < 0) {
perror("task_daemonize: setpgrp");
@@ -5901,7 +5909,7 @@
@@ -5942,7 +5950,7 @@
}
(void) close(t);
}

View File

@ -0,0 +1,15 @@
diff -ur _work/gated-3-5-9/src/if.c work/gated-3-5-9/src/if.c
--- src/if.c Sun Dec 13 19:16:41 1998
+++ src/if.c Fri Jul 18 00:41:47 1997
@@ -2061,9 +2061,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;
int_rtparms.rtp_dest_mask = sockhostmask(ifap->ifa_addr);
+ if (sock2ip(ifap->ifa_addr) == htonl(INADDR_LOOPBACK))
+ BIT_SET(int_rtparms.rtp_state, RTS_NOADVISE);
ifap->ifa_rt = rt_add(&int_rtparms);
break;