Page MenuHomeFreeBSD

Refragment packets after defragmenting them in PF
ClosedPublic

Authored by kp on Feb 3 2015, 8:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 7:19 PM
Unknown Object (File)
Mar 4 2024, 1:55 AM
Unknown Object (File)
Dec 23 2023, 6:29 AM
Unknown Object (File)
Dec 20 2023, 12:07 AM
Unknown Object (File)
Dec 3 2023, 8:24 AM
Unknown Object (File)
Nov 12 2023, 3:58 PM
Unknown Object (File)
Nov 12 2023, 8:18 AM
Unknown Object (File)
Nov 10 2023, 10:32 PM

Details

Reviewers
glebius
Summary

In the forwarding case refragment the reassembled packets with the same
size as they arrived in. This allows the sender to determine the optimal
fragment size by Path MTU Discovery.

Roughly based on the OpenBSD work by Alexander Bluhm.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kp retitled this revision from to Refragment packets after defragmenting them in PF.
kp updated this object.
kp edited the test plan for this revision. (Show Details)
kp added a subscriber: Unknown Object (MLST).Feb 3 2015, 8:53 PM
ae edited subscribers, added: network; removed: Unknown Object (MLST).Feb 10 2015, 9:16 AM
ae added inline comments.
sys/netpfil/pf/pf_norm.c
1138

ip6_fragment() seems OpenBSD's function, we haven't it.

1156

Where should be initialized this variable?

sys/netpfil/pf/pf_norm.c
1138

Ok, looks like you have many patches in phabricator.

glebius added a reviewer: glebius.
glebius added a subscriber: glebius.

If it tested properly and fixes the problems that Peter Wemm experiences with the cluster, please check it in. Thanks a lot.

sys/netpfil/pf/pf_norm.c
1118

Use KASSERT here please.

1119

Use char * instead of caddr_t, please.

This revision is now accepted and ready to land.Feb 12 2015, 9:05 PM
kp edited edge metadata.
This revision now requires review to proceed.Feb 14 2015, 2:11 PM
glebius edited edge metadata.
This revision is now accepted and ready to land.Feb 16 2015, 6:59 AM

Submitted as r278843 - head/sys/netpfil/pf