Hello, need some help about socket filter (NKE) development
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Kd8nAs50AoO/wXq5vhUZR4JEI2Y9ORPosLPUJEA0N/o=; b=DSBcBqCAVTCPbYdrbG0e4uMR2bMH6kunUoNtKf4NeW6SmCHEP37qS4tOLmiyOQD/4r Qo2UZT9d2nFroq9Ro/OmlemKxxM/vvrY+hqGOOaon0nJpK+sOSms5c0RoVFWHlPS/Gfl Ezf8PQvRF6l16lIJjQ3vhcDCWsbA68tnp0Y4CTEgENOn5wugfZyuwmHQh4v05aZ0rfy0 HX+eN7hFnO+VX6avj+LjcY6DCrpBEZvy5c0jk56Ms10d7QK51riZknpUSW5dVoEdMb+Z cIswBfUjHB+0zEDgP7yJ9OzRBqdxqGRdzEfYRHsBVKslDHH0VokAnXZEjjCp7IVF2IDV /36g== 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Haohao Lee