Update MaxPackageLen to be a bit bigger than default MTU

This commit is contained in:
Patrick Pacher 2020-08-18 15:22:58 +02:00
parent 7d25f9f4f4
commit bd681cd01f
No known key found for this signature in database
GPG key ID: E8CD2DA160925A6D

View file

@ -35,7 +35,7 @@ func New(qid uint16, v6 bool) (*Queue, error) {
}
cfg := &nfqueue.Config{
NfQueue: qid,
MaxPacketLen: 0xff,
MaxPacketLen: 1600, // mtu is normally around 1500, make sure to capture it.
MaxQueueLen: 0xffff,
AfFamily: uint8(afFamily),
Copymode: nfqueue.NfQnlCopyPacket,