aboutsummaryrefslogtreecommitdiffstats
path: root/net/quagga/files
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2007-02-01 21:25:05 +0800
committersem <sem@FreeBSD.org>2007-02-01 21:25:05 +0800
commit306f78934fedce6354ff61252ee3038769909fc3 (patch)
tree84eb970abf4e6eddf04d8622e84c4c3f58bd840c /net/quagga/files
parent8c95a248c78799fe88a88c7f2edff4154506539a (diff)
downloadfreebsd-ports-gnome-306f78934fedce6354ff61252ee3038769909fc3.tar.gz
freebsd-ports-gnome-306f78934fedce6354ff61252ee3038769909fc3.tar.zst
freebsd-ports-gnome-306f78934fedce6354ff61252ee3038769909fc3.zip
- Add a sanity check when ripd takes metric from RTM_NEWADDR message.
- Bump PORTREVISION. PR: ports/108430 Submitted by: Eugene Grosbein <eugen_AT_grosbein.pp.ru> Approved by: maintainer
Diffstat (limited to 'net/quagga/files')
-rw-r--r--net/quagga/files/patch-zebra-kernel_socket.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/quagga/files/patch-zebra-kernel_socket.c b/net/quagga/files/patch-zebra-kernel_socket.c
new file mode 100644
index 000000000000..c6facc5d14e5
--- /dev/null
+++ b/net/quagga/files/patch-zebra-kernel_socket.c
@@ -0,0 +1,12 @@
+--- zebra/kernel_socket.c.orig Thu Sep 14 06:47:11 2006
++++ zebra/kernel_socket.c Thu Feb 1 16:16:35 2007
+@@ -585,7 +585,8 @@
+ if (ifnlen && strncmp (ifp->name, ifname, INTERFACE_NAMSIZ))
+ isalias = 1;
+
+- ifp->metric = ifam->ifam_metric;
++ if (ifam->ifam_metric)
++ ifp->metric = ifam->ifam_metric;
+
+ /* Add connected address. */
+ switch (sockunion_family (&addr))