]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Merge r280956
authorkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Jun 2015 20:41:55 +0000 (20:41 +0000)
committerkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 18 Jun 2015 20:41:55 +0000 (20:41 +0000)
commit1f0aaa2c0b1618972194b09346a3d7f33feaf8a7
tree37100ce876438f5510637e5ca9e61f8869da7c71
parent7ff1b4c09f2b1579b1d28f0d0393c3ddadadfee5
Merge r280956

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/D2818
Reviewed by: gnn

git-svn-id: svn://svn.freebsd.org/base/stable/10@284573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netpfil/pf/pf_norm.c