diff options
author | Ansis Atteka <aatteka@nicira.com> | 2013-09-18 15:29:53 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-13 14:51:07 -0700 |
commit | 2a6a2791b1e6ebd7ad29f137a309471f92d71c55 (patch) | |
tree | 613e5018ff9eeaae11184aac70cd682fa93f31f6 /lib/ts_bm.c | |
parent | 20218d3d355cb32bdf1d737438958aa75f6ab21a (diff) | |
download | kernel_samsung_smdk4412-2a6a2791b1e6ebd7ad29f137a309471f92d71c55.zip kernel_samsung_smdk4412-2a6a2791b1e6ebd7ad29f137a309471f92d71c55.tar.gz kernel_samsung_smdk4412-2a6a2791b1e6ebd7ad29f137a309471f92d71c55.tar.bz2 |
ip: generate unique IP identificator if local fragmentation is allowed
[ Upstream commit 703133de331a7a7df47f31fb9de51dc6f68a9de8 ]
If local fragmentation is allowed, then ip_select_ident() and
ip_select_ident_more() need to generate unique IDs to ensure
correct defragmentation on the peer.
For example, if IPsec (tunnel mode) has to encrypt large skbs
that have local_df bit set, then all IP fragments that belonged
to different ESP datagrams would have used the same identificator.
If one of these IP fragments would get lost or reordered, then
peer could possibly stitch together wrong IP fragments that did
not belong to the same datagram. This would lead to a packet loss
or data corruption.
Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/ts_bm.c')
0 files changed, 0 insertions, 0 deletions