Hooks
public enum Hooks
Hooks defined by LwIP to add custom logic for processing IP packets
-
Hook for manally specifying a route from
src
todest
This will be called for any outgoing packet before any other routes will be evaluated.If no network interface is returned, the default routing mechanism is being applied Important The hook will be evaulated in the context of the TCP/IP stack. Therefore, any access to TCP/IP related functions (like for example sending packets) will result in a deadlock.
Declaration
Swift
public static var ip4RouteHook: ((_ src: IP4Address, _ dest: IP4Address) -> NetworkInterface?)?
-
Undocumented
See moreDeclaration
Swift
public enum IP4InputHookResult : Int32
-
Hook for processing incoming packets of all network interfaces.
Important The hook will be evaulated in the context of the TCP/IP stack. Therefore, any access to TCP/IP related functions (like for example sending packets) will result in a deadlock.
Declaration
Swift
public static var ip4InputHook: ((Data, NetworkInterface) -> IP4InputHookResult)?