ip6: move ipip6_err_gen_icmpv6_unreach()
authorEric Dumazet <edumazet@google.com>
Sun, 19 Jun 2016 04:52:03 +0000 (21:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jun 2016 05:11:39 +0000 (22:11 -0700)
commit5fbba8ac9358f1e796c8aedcccc3487364643723
tree2b96725dff29857dad4a6aca7a94d06322339ac5
parentb1cadc1a0949c82ff7fcb15603e3caf2d32ff9f6
ip6: move ipip6_err_gen_icmpv6_unreach()

We want to use this helper from GRE as well, so this is
the time to move it in net/ipv6/icmp.c

Also add a @nhs parameter, since SIT and GRE have different
values for the header(s) to skip.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/icmpv6.h
net/ipv6/icmp.c
net/ipv6/sit.c