64a0ba3b27
Packets are received directly onto pre-cooked, static buffers for IPv4 (with partial checksum pre-calculation) and IPv6 frames, with pre-filled Ethernet addresses and, partially, IP headers, and sent out from the same buffers with sendmmsg(), for both passt and pasta (non-local traffic only) modes. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
4 lines
165 B
C
4 lines
165 B
C
void pcap(char *pkt, size_t len);
|
|
void pcapm(struct msghdr *mh);
|
|
void pcapmm(struct mmsghdr *mmh, unsigned int vlen);
|
|
void pcap_init(struct ctx *c, int sock_index);
|