mirror of
https://passt.top/passt
synced 2025-06-17 20:55:34 +02:00
tcp, tap: Turn tcp_probe_mem() into sock_probe_mem(), use for AF_UNIX socket too
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
eef4e82903
commit
d4d61480b6
7 changed files with 49 additions and 40 deletions
5
passt.h
5
passt.h
|
@ -126,6 +126,8 @@ enum passt_modes {
|
|||
* @no_dhcpv6: Disable DHCPv6 server
|
||||
* @no_ndp: Disable NDP handler altogether
|
||||
* @no_ra: Disable router advertisements
|
||||
* @low_wmem: Low probed net.core.wmem_max
|
||||
* @low_rmem: Low probed net.core.rmem_max
|
||||
*/
|
||||
struct ctx {
|
||||
enum passt_modes mode;
|
||||
|
@ -177,6 +179,9 @@ struct ctx {
|
|||
int no_dhcpv6;
|
||||
int no_ndp;
|
||||
int no_ra;
|
||||
|
||||
int low_wmem;
|
||||
int low_rmem;
|
||||
};
|
||||
|
||||
void proto_update_l2_buf(unsigned char *eth_d, unsigned char *eth_s,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue