|
From: | Stian Skjelstad |
Subject: | Re: [lwip-devel] New Hook IP function for output packages |
Date: | Sat, 14 Jan 2023 00:31:32 +0100 |
I already wrote a thread a few months ago about implementing the functions LWIP_HOOK_IP4_OUTPUT and LWIP_HOOK_IP6_OUTPUT. Now that I´m implementing it. I define these functions in ip4_output and in ip6_output as follows._______________________________________________ip4_output(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,u8_t ttl, u8_t tos, u8_t proto){struct netif *netif;...#ifdef LWIP_HOOK_IP4_OUTPUTif (LWIP_HOOK_IP4_OUTPUT(p, src, dest, ttl, tos, proto, netif)) {/* the packet has been eaten */return ERR_OK;}#endifreturn ip4_output_if(p, src, dest, ttl, tos, proto, netif);}I try to see if these functions work by printing a sentence each time the ESP32 sends a package and the program does not enter the function every time the esp32 sends a packet.The function is defined in the opt.h file and in my files to use it in my main.cpp.All help is welcome.
lwip-devel mailing list
lwip-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-devel
[Prev in Thread] | Current Thread | [Next in Thread] |