Zohar81
Zohar81

Reputation: 5128

Getting connection details inside method handleNewUDPFlow for macOS network security

I'm using NETransparentProxyProvider to intercept udp sockets using the method handleNewUDPFlow. If an application create a UDP socket and set the DONTFRAG using setsockopt method

setsockopt(s, IPPROTO_IP, IP_DONTFRAG, &val, sizeof(val))

Do I have option in this case, to get the connection settings inside the callback

- (void)handleNewUDPFlow:(NEAppProxyUDPFlow *)flow initialRemoteEndpoint:(NWEndpoint *)remoteEndpoint;

So in this case, I would be able to create the outgoing socket with the exact same characteristics, after the original app socket got intercepted by my proxy provider ?

Upvotes: -1

Views: 19

Answers (0)

Related Questions