- Add three patches from Quagga GIT:
http://code.quagga.net/?p=quagga.git;a=commit;h=08a7a91646a1ee317c402b421e3a7036a640bcf4 http://code.quagga.net/?p=quagga.git;a=commit;h=403138e189c24f6867824c4eeb668d11564e1ca0 http://code.quagga.net/?p=quagga.git;a=commit;h=c7aa8abd8788c3607ad0131f02e892cf92221e40 Submitted by: Dmitry Tejblum <tejblum_at_yandex-team.ru> Approved by: maintainer (implicitly) Feature safe: yes
This commit is contained in:
parent
ed4913c17e
commit
cf3754b692
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267789
4 changed files with 78 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= quagga
|
||||
PORTVERSION= 0.99.17
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= http://quagga.net/download/ \
|
||||
http://www.ru.quagga.net/download/ \
|
||||
|
|
20
net/quagga/files/patch-git-2
Normal file
20
net/quagga/files/patch-git-2
Normal file
|
@ -0,0 +1,20 @@
|
|||
diff --git a/lib/zclient.c b/lib/zclient.c
|
||||
index d3d5322..52a3627 100644
|
||||
--- lib/zclient.c
|
||||
+++ lib/zclient.c
|
||||
@@ -339,12 +339,12 @@ zclient_start (struct zclient *zclient)
|
||||
/* Create read thread. */
|
||||
zclient_event (ZCLIENT_READ, zclient);
|
||||
|
||||
- /* We need interface information. */
|
||||
- zebra_message_send (zclient, ZEBRA_INTERFACE_ADD);
|
||||
-
|
||||
/* We need router-id information. */
|
||||
zebra_message_send (zclient, ZEBRA_ROUTER_ID_ADD);
|
||||
|
||||
+ /* We need interface information. */
|
||||
+ zebra_message_send (zclient, ZEBRA_INTERFACE_ADD);
|
||||
+
|
||||
/* Flush all redistribute request. */
|
||||
for (i = 0; i < ZEBRA_ROUTE_MAX; i++)
|
||||
if (i != zclient->redist_default && zclient->redist[i])
|
40
net/quagga/files/patch-git-3
Normal file
40
net/quagga/files/patch-git-3
Normal file
|
@ -0,0 +1,40 @@
|
|||
diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c
|
||||
index bfb6df2..04367f0 100644
|
||||
--- ospf6d/ospf6_spf.c
|
||||
+++ ospf6d/ospf6_spf.c
|
||||
@@ -50,7 +50,9 @@ ospf6_vertex_cmp (void *a, void *b)
|
||||
struct ospf6_vertex *vb = (struct ospf6_vertex *) b;
|
||||
|
||||
/* ascending order */
|
||||
- return (va->cost - vb->cost);
|
||||
+ if (va->cost != vb->cost)
|
||||
+ return (va->cost - vb->cost);
|
||||
+ return (va->hops - vb->hops);
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -320,22 +322,8 @@ ospf6_spf_install (struct ospf6_vertex *v,
|
||||
}
|
||||
|
||||
prev = (struct ospf6_vertex *) route->route_option;
|
||||
- if (prev->hops > v->hops)
|
||||
- {
|
||||
- for (ALL_LIST_ELEMENTS (prev->child_list, node, nnode, w))
|
||||
- {
|
||||
- assert (w->parent == prev);
|
||||
- w->parent = v;
|
||||
- listnode_add_sort (v->child_list, w);
|
||||
- }
|
||||
- listnode_delete (prev->parent->child_list, prev);
|
||||
- listnode_add_sort (v->parent->child_list, v);
|
||||
-
|
||||
- ospf6_vertex_delete (prev);
|
||||
- route->route_option = v;
|
||||
- }
|
||||
- else
|
||||
- ospf6_vertex_delete (v);
|
||||
+ assert (prev->hops <= v->hops);
|
||||
+ ospf6_vertex_delete (v);
|
||||
|
||||
return -1;
|
||||
}
|
17
net/quagga/files/patch-git-4
Normal file
17
net/quagga/files/patch-git-4
Normal file
|
@ -0,0 +1,17 @@
|
|||
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c
|
||||
index a5f9552..9102add 100644
|
||||
--- bgpd/bgp_packet.c
|
||||
+++ bgpd/bgp_packet.c
|
||||
@@ -1885,12 +1885,6 @@ bgp_notify_receive (struct peer *peer, bgp_size_t size)
|
||||
bgp_notify.subcode == BGP_NOTIFY_OPEN_UNSUP_PARAM )
|
||||
UNSET_FLAG (peer->sflags, PEER_STATUS_CAPABILITY_OPEN);
|
||||
|
||||
- /* Also apply to Unsupported Capability until remote router support
|
||||
- capability. */
|
||||
- if (bgp_notify.code == BGP_NOTIFY_OPEN_ERR &&
|
||||
- bgp_notify.subcode == BGP_NOTIFY_OPEN_UNSUP_CAPBL)
|
||||
- UNSET_FLAG (peer->sflags, PEER_STATUS_CAPABILITY_OPEN);
|
||||
-
|
||||
BGP_EVENT_ADD (peer, Receive_NOTIFICATION_message);
|
||||
}
|
||||
|
Loading…
Reference in a new issue