chiark / gitweb /
dhcp-network: ignore IP packets with More Fragments (MF) flag set
authorMichal Sekletar <msekleta@redhat.com>
Mon, 7 Jul 2014 12:15:41 +0000 (14:15 +0200)
committerMichal Sekletar <msekleta@redhat.com>
Mon, 7 Jul 2014 13:32:12 +0000 (15:32 +0200)
commitb064329fd80b8d0fe2e46c561f92886090fa20d1
treeb268799731566967c7b5c224f4682a552b810ab2
parent418b9be50018303cde79b423d4701b7fd86ddbdc
dhcp-network: ignore IP packets with More Fragments (MF) flag set

We already ignore IP fragments, because we expect that Fragment
offset (FO) field is not set. However first fragment in a fragmented IP
flow will have all zeroes in FO field. We should ignore such packet as
well, thus we need to look at MF flag in the IP header. Checking MF flag
will filter out all except last packet in fragmented flows. Last one
will be ruled out by next check for value of FO.
src/libsystemd-network/dhcp-network.c