diff options
author | Gaurav Goyal <gaurav.goyal@4rf.com> | 2020-11-02 00:11:19 +0100 |
---|---|---|
committer | Reuben Dowle <reuben.dowle@4rf.com> | 2020-12-16 22:17:07 +0100 |
commit | ddd8d8c84522297b13b9b1068ea93553b53b27d5 (patch) | |
tree | ad99187c8eb9b10a82f0521f1fcdafe35fba4696 /lib/sockunion.h | |
parent | nhrpd: add reference to net.ipv4.ip_forward_use_pmtu=1 thread (diff) | |
download | frr-ddd8d8c84522297b13b9b1068ea93553b53b27d5.tar.xz frr-ddd8d8c84522297b13b9b1068ea93553b53b27d5.zip |
nhrpd: Clear shortcut routes properly for all protocols
Currently when nhrp shortcuts are purged they will not be recreated. This
patch fixes that by ensuring the shortcut routes get purged correctly.
This situation can be reproduced by first allowing a shortcut to be created
then clearing the shortcut:
clear ip nhrp cache
clear ip nhrp shortcuts
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
Diffstat (limited to 'lib/sockunion.h')
-rwxr-xr-x[-rw-r--r--] | lib/sockunion.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sockunion.h b/lib/sockunion.h index 72f12b77c..5e80ba109 100644..100755 --- a/lib/sockunion.h +++ b/lib/sockunion.h @@ -102,6 +102,7 @@ extern union sockunion *sockunion_getpeername(int); extern union sockunion *sockunion_dup(const union sockunion *); extern void sockunion_free(union sockunion *); extern void sockunion_init(union sockunion *); +extern int sockunion_is_null(const union sockunion *su); #ifdef _FRR_ATTRIBUTE_PRINTFRR #pragma FRR printfrr_ext "%pSU" (union sockunion *) |