net/ipv4: Ensure that location of timestamp option is stored
authorDavid Ward <david.ward@ll.mit.edu>
Mon, 11 Mar 2013 10:43:39 +0000 (10:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2013 09:35:39 +0000 (05:35 -0400)
commit4660c7f498c07c43173142ea95145e9dac5a6d14
treeb995abcd1c104744fc87346a7cb47542ee95a2ea
parent47ce9c4821fa41ef72c1004e1a362d08334cd717
net/ipv4: Ensure that location of timestamp option is stored

This is needed in order to detect if the timestamp option appears
more than once in a packet, to remove the option if the packet is
fragmented, etc. My previous change neglected to store the option
location when the router addresses were prespecified and Pointer >
Length. But now the option location is also stored when Flag is an
unrecognized value, to ensure these option handling behaviors are
still performed.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_options.c