Add note about disabling TCP offloading
This commit is contained in:
parent
6981889ea0
commit
1284a1617b
@ -47,9 +47,8 @@ m=socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(ETH_P_ALL))
|
||||
m.bind((dev, 0))
|
||||
|
||||
# TODO: IP Frames w/ MTU > 1500
|
||||
# i = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_RAW)
|
||||
# i.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, True)
|
||||
# i.send(ip payload)
|
||||
# Make sure to disable TCP segmentation offloading to use this:
|
||||
# https://www.baeldung.com/linux/tcp-offload-disable
|
||||
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
if (mode == "s"):
|
||||
|
Loading…
Reference in New Issue
Block a user