As you'd have to poll SA timestamp counters anyway to check the timestamp, why not just poll existing SA bytes/packets counters instead to see if some traffic is going through?
Best ben > -----Original Message----- > From: [email protected] <[email protected]> On Behalf Of Guangming > Sent: Friday, October 14, 2022 8:37 > To: neale <[email protected]>; radu.nicolau <[email protected]>; > roy.fan.zhang <[email protected]> > Cc: vpp-dev <[email protected]> > Subject: [vpp-dev] A question about last used timestamp in ipsec sa > > > > Hi,Neale , Radu and Fan > Now the ipsec in VPP did not record the traffic timestamp in sa and > spd like linux kernel . So we can not Implement the full DPD function In > IKE control daemon that only send DPD when no traffic . > What is the good method to add timestamp . This method should be fit to > both sync node and async mode. > Use a new timestamp counter or add timestamp in old couter > ipsec_sa_counters ? > > struct xfrm_lifetime_cur { > __u64 bytes; > __u64 packets; > __u64 add_time; > __u64 use_time; > }; > > > Thanks > Guangming > ________________________________ > > [email protected]
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22030): https://lists.fd.io/g/vpp-dev/message/22030 Mute This Topic: https://lists.fd.io/mt/94321862/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
