HomeFreeBSD

pf: Deal with runt packets

Description

pf: Deal with runt packets

On Ethernet packets have a minimal length, so very short packets get padding
appended to them. This padding is not stripped off in ip6_input() (due to
support for IPv6 Jumbograms, RFC2675).
That means PF needs to be careful when reassembling fragmented packets to not
include the padding in the reassembled packet.

While here also remove the 'Magic from ip_input.' bits. Splitting up and
re-joining an mbuf chain here doesn't make any sense.

Differential Revision: https://reviews.freebsd.org/D2189
Approved by: gnn (mentor)

Details

Provenance
kpAuthored on
Parents
rS280955: Preserve IPv6 fragment IDs accross reassembly and refragmentation
Branches
Unknown
Tags
Unknown

Event Timeline