summaryrefslogtreecommitdiff
path: root/net/ipv6/ip6_gre.c
diff options
context:
space:
mode:
authorTom Herbert <tom@herbertland.com>2016-04-30 03:12:16 +0300
committerDavid S. Miller <davem@davemloft.net>2016-05-03 02:23:31 +0300
commit95f5c64c3c13a609e137d35c4b452519e0b954df (patch)
treea01c464cb5ff29e77e546881b69f8f541bf22861 /net/ipv6/ip6_gre.c
parent0d3c703a9d1723c7707e0680019ac8ff5922db42 (diff)
downloadlinux-95f5c64c3c13a609e137d35c4b452519e0b954df.tar.xz
gre: Move utility functions to common headers
Several of the GRE functions defined in net/ipv4/ip_gre.c are usable for IPv6 GRE implementation (that is they are protocol agnostic). These include: - GRE flag handling functions are move to gre.h - GRE build_header is moved to gre.h and renamed gre_build_header - parse_gre_header is moved to gre_demux.c and renamed gre_parse_header - iptunnel_pull_header is taken out of gre_parse_header. This is now done by caller. The header length is returned from gre_parse_header in an int* argument. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_gre.c')
0 files changed, 0 insertions, 0 deletions