diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-08-06 13:45:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-09 11:05:24 -0700 |
commit | 77a482bdb2e68d13fae87541b341905ba70d572b (patch) | |
tree | ba85e09ee08b8ae06c402fa08a0e1563de9d76a0 /net/core | |
parent | 75848d338cdecec206018e8b49fe081c624c200d (diff) |
ip_gre: fix ipgre_header to return correct offset
Fix ipgre_header() (header_ops->create) to return the correct
amount of bytes pushed. Most callers of dev_hard_header() seem
to care only if it was success, but af_packet.c uses it as
offset to the skb to copy from userspace only once. In practice
this fixes packet socket sendto()/sendmsg() to gre tunnels.
Regression introduced in c54419321455631079c7d6e60bc732dd0c5914c5
("GRE: Refactor GRE tunneling code.")
Cc: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions