Hello, need some help about socket filter (NKE) development
Hello, need some help about socket filter (NKE) development
- Subject: Hello, need some help about socket filter (NKE) development
- From: Haohao Lee <email@hidden>
- Date: Fri, 14 Sep 2018 14:40:43 +0800
Hi folks,
We are developing a network kernel extension which can be used to filter
the traffic in and out.
The sf_connect_out_func are used to do the filtering. However, what we want
is to match the traffic by the local address and remote address, in
sf_connect_out_func
we cannot get the local address since the function signature is like
typedef errno_t (*sf_connect_out_func)(void *cookie, socket_t so, const
struct sockaddr *to);
Only remote address is provided.
How can I get the local address in sf_connect_out_func or is there another
way to achieve this?
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden