net/quagga-unstable: add some upstream patches
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23436 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c264a0c812
commit
af97f980e6
11
net/quagga-unstable/patches/000-upstream-bogus_cond.patch
Normal file
11
net/quagga-unstable/patches/000-upstream-bogus_cond.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/zebra/zserv.c
|
||||
+++ b/zebra/zserv.c
|
||||
@@ -451,7 +451,7 @@ zsend_route_multipath (int cmd, struct zserv *client, struct prefix *p,
|
||||
}
|
||||
|
||||
/* Metric */
|
||||
- if (cmd == ZEBRA_IPV4_ROUTE_ADD || ZEBRA_IPV6_ROUTE_ADD)
|
||||
+ if (cmd == ZEBRA_IPV4_ROUTE_ADD || cmd == ZEBRA_IPV6_ROUTE_ADD)
|
||||
{
|
||||
SET_FLAG (zapi_flags, ZAPI_MESSAGE_DISTANCE);
|
||||
stream_putc (s, rib->distance);
|
11
net/quagga-unstable/patches/000-upstream-miss_str.patch
Normal file
11
net/quagga-unstable/patches/000-upstream-miss_str.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/lib/vty.c
|
||||
+++ b/lib/vty.c
|
||||
@@ -250,7 +250,7 @@ vty_hello (struct vty *vty)
|
||||
vty_out (vty, "MOTD file not found%s", VTY_NEWLINE);
|
||||
}
|
||||
else if (host.motd)
|
||||
- vty_out (vty, host.motd);
|
||||
+ vty_out (vty, "%s", host.motd);
|
||||
}
|
||||
|
||||
/* Put out prompt and wait input from user. */
|
16
net/quagga-unstable/patches/000-upstream-set_null.patch
Normal file
16
net/quagga-unstable/patches/000-upstream-set_null.patch
Normal file
@ -0,0 +1,16 @@
|
||||
--- a/bgpd/bgp_packet.c
|
||||
+++ b/bgpd/bgp_packet.c
|
||||
@@ -177,10 +177,11 @@ bgp_update_packet (struct peer *peer, afi_t afi, safi_t safi)
|
||||
|
||||
if (rn->prn)
|
||||
prd = (struct prefix_rd *) &rn->prn->p;
|
||||
- if (binfo && binfo->extra)
|
||||
+ if (binfo)
|
||||
{
|
||||
- tag = binfo->extra->tag;
|
||||
from = binfo->peer;
|
||||
+ if (binfo->extra)
|
||||
+ tag = binfo->extra->tag;
|
||||
}
|
||||
|
||||
bgp_packet_set_marker (s, BGP_MSG_UPDATE);
|
Loading…
x
Reference in New Issue
Block a user