From bb58f4425920cec76196e467403bb084e3a14e76 Mon Sep 17 00:00:00 2001 From: Gaurav Goyal Date: Thu, 11 Mar 2021 15:59:41 +1300 Subject: nhrpd: Process NAT extension properly, and also fallback to IPSec NAT info Signed-off-by: Reuben Dowle --- nhrpd/nhrpd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nhrpd/nhrpd.h') diff --git a/nhrpd/nhrpd.h b/nhrpd/nhrpd.h index 365546315..b566fd65a 100644 --- a/nhrpd/nhrpd.h +++ b/nhrpd/nhrpd.h @@ -156,6 +156,7 @@ struct nhrp_peer { struct nhrp_vc *vc; struct thread *t_fallback; struct notifier_block vc_notifier, ifp_notifier; + struct thread *t_timer; }; struct nhrp_packet_parser { @@ -228,6 +229,7 @@ struct nhrp_cache { struct nhrp_peer *peer; time_t expires; uint32_t mtu; + int holding_time; } cur, new; }; @@ -465,4 +467,6 @@ void nhrp_peer_recv(struct nhrp_peer *p, struct zbuf *zb); void nhrp_peer_send(struct nhrp_peer *p, struct zbuf *zb); void nhrp_peer_send_indication(struct interface *ifp, uint16_t, struct zbuf *); +int nhrp_nhs_match_ip(union sockunion *in_ip, struct nhrp_interface *nifp); + #endif -- cgit v1.2.3