1
0
mirror of https://passt.top/passt synced 2024-07-01 23:42:41 +00:00
passt/pcap.h
Stefano Brivio 19d254bbbb passt: Add support for multiple instances in different network namespaces
...sharing the same filesystem. Instead of a fixed path for the UNIX
domain socket, passt now uses a path with a counter, probing for
existing instances, and picking the first free one.

The demo script is updated accordingly -- it can now be started several
times to create multiple namespaces with an instance of passt each,
with addressing reflecting separate subnets, and NDP proxying between
them.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2021-05-21 11:14:51 +02:00

3 lines
66 B
C

void pcap(char *pkt, size_t len);
void pcap_init(int sock_index);