This adds support for attach_raw_socket. The changes are similiar to the one from #180 but this time in a more usable manner by only exposing the underlying sockets via socket2::Socket.
One BPF program can be attached to multiple interfaces. For each interface a raw socket is created, which is returned to the user so it can be used for reading/sending/etc.
As in my other PR I also included the port_filter example.
This adds support for
attach_raw_socket
. The changes are similiar to the one from #180 but this time in a more usable manner by only exposing the underlying sockets viasocket2::Socket
.One BPF program can be attached to multiple interfaces. For each interface a raw socket is created, which is returned to the user so it can be used for reading/sending/etc.
As in my other PR I also included the
port_filter
example.