mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 14:40:35 +00:00
commit
954b112276
@ -240,9 +240,8 @@ static int bgp_pbr_validate_policy_route(struct bgp_pbr_entry_main *api)
|
||||
* - combination src/dst => drop
|
||||
* - combination srcport + @IP
|
||||
*/
|
||||
if (api->match_icmp_type_num || api->match_icmp_type_num
|
||||
|| api->match_packet_length_num || api->match_dscp_num
|
||||
|| api->match_tcpflags_num) {
|
||||
if (api->match_icmp_type_num || api->match_packet_length_num
|
||||
|| api->match_dscp_num || api->match_tcpflags_num) {
|
||||
if (BGP_DEBUG(pbr, PBR)) {
|
||||
bgp_pbr_print_policy_route(api);
|
||||
zlog_debug("BGP: some SET actions not supported by Zebra. ignoring.");
|
||||
|
@ -210,5 +210,5 @@ void form_auto_rd(struct in_addr router_id,
|
||||
prd->family = AF_UNSPEC;
|
||||
prd->prefixlen = 64;
|
||||
sprintf(buf, "%s:%hu", inet_ntoa(router_id), rd_id);
|
||||
str2prefix_rd(buf, prd);
|
||||
(void)str2prefix_rd(buf, prd);
|
||||
}
|
||||
|
@ -2551,7 +2551,9 @@ static int bgp_maximum_prefix_restart_timer(struct thread *thread)
|
||||
"%s Maximum-prefix restart timer expired, restore peering",
|
||||
peer->host);
|
||||
|
||||
peer_clear(peer, NULL);
|
||||
if ((peer_clear(peer, NULL) < 0) && bgp_debug_neighbor_events(peer))
|
||||
zlog_debug("%s: %s peer_clear failed",
|
||||
__PRETTY_FUNCTION__, peer->host);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -254,11 +254,6 @@ static struct pim_msdp_sa *pim_msdp_sa_new(struct pim_instance *pim,
|
||||
|
||||
/* insert into misc tables for easy access */
|
||||
sa = hash_get(pim->msdp.sa_hash, sa, hash_alloc_intern);
|
||||
if (!sa) {
|
||||
zlog_err("%s: PIM hash get failure", __PRETTY_FUNCTION__);
|
||||
pim_msdp_sa_free(sa);
|
||||
return NULL;
|
||||
}
|
||||
listnode_add_sort(pim->msdp.sa_list, sa);
|
||||
|
||||
if (PIM_DEBUG_MSDP_EVENTS) {
|
||||
|
Loading…
Reference in New Issue
Block a user