When I set UIP_STATISTICS=1
, I can use uip_stat.udp.sent
to know how many UDP packets I have send, but it does not include the number of packets forwarded. So how can I get it?
Asked
Active
Viewed 83 times
0
-
Does `uip_stat.forwarded` work for you? There is no counter at the UDP level, because UDP does not forward any packets. UDP is an end-to-end protocol, the forwarding is done by IP. – kfx Feb 22 '22 at 07:24
-
Thanks, I can use uip_stat.ip.sent - uip_stat.udp.sent - uip_stat.icmp.sent to accept the number of packets forwarded. What do you think? – kgao Feb 22 '22 at 13:57