mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 02:46:26 +00:00
* rip_routemap.c: In case of '0.0.0.0' used as 'nexthop', use sender
address as nexthop in routemap. Fixes bugzilla #186. [backport candidate]
This commit is contained in:
parent
cf96db1cef
commit
dc625e8606
@ -1,3 +1,8 @@
|
||||
2005-05-26 Hasso Tepper <hasso at quagga.net>
|
||||
|
||||
* rip_routemap.c: In case of '0.0.0.0' used as 'nexthop', use sender
|
||||
address as nexthop in routemap.
|
||||
|
||||
2005-05-26 Hasso Tepper <hasso at quagga.net>
|
||||
|
||||
* rip_routemap.c: Make "match interface" routemap command match both -
|
||||
|
@ -275,7 +275,7 @@ route_match_ip_next_hop (void *rule, struct prefix *prefix,
|
||||
{
|
||||
rinfo = object;
|
||||
p.family = AF_INET;
|
||||
p.prefix = rinfo->nexthop;
|
||||
p.prefix = (rinfo->nexthop.s_addr) ? rinfo->nexthop : rinfo->from;
|
||||
p.prefixlen = IPV4_MAX_BITLEN;
|
||||
|
||||
alist = access_list_lookup (AFI_IP, (char *) rule);
|
||||
@ -326,7 +326,7 @@ route_match_ip_next_hop_prefix_list (void *rule, struct prefix *prefix,
|
||||
{
|
||||
rinfo = object;
|
||||
p.family = AF_INET;
|
||||
p.prefix = rinfo->nexthop;
|
||||
p.prefix = (rinfo->nexthop.s_addr) ? rinfo->nexthop : rinfo->from;
|
||||
p.prefixlen = IPV4_MAX_BITLEN;
|
||||
|
||||
plist = prefix_list_lookup (AFI_IP, (char *) rule);
|
||||
|
Loading…
Reference in New Issue
Block a user