summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorTom Herbert <tom@herbertland.com>2016-05-18 09:06:15 -0700
committerDavid S. Miller <davem@davemloft.net>2016-05-20 18:03:16 -0400
commitdc969b81ebb37d6ec3d7659763bf017ee03f3ac1 (patch)
treefe074147289140551acc56f018bbac679b84779f /include/net
parent440924bbc0e11fb429ccc25f6d9597d5a7a02296 (diff)
downloadop-kernel-dev-dc969b81ebb37d6ec3d7659763bf017ee03f3ac1.zip
op-kernel-dev-dc969b81ebb37d6ec3d7659763bf017ee03f3ac1.tar.gz
fou: Split out {fou,gue}_build_header
Create __fou_build_header and __gue_build_header. These implement the protocol generic parts of building the fou and gue header. fou_build_header and gue_build_header implement the IPv4 specific functions and call the __*_build_header functions. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/fou.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/fou.h b/include/net/fou.h
index 19b8a0c..7d2fda2 100644
--- a/include/net/fou.h
+++ b/include/net/fou.h
@@ -11,9 +11,9 @@
size_t fou_encap_hlen(struct ip_tunnel_encap *e);
static size_t gue_encap_hlen(struct ip_tunnel_encap *e);
-int fou_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
- u8 *protocol, struct flowi4 *fl4);
-int gue_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
- u8 *protocol, struct flowi4 *fl4);
+int __fou_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
+ u8 *protocol, __be16 *sport, int type);
+int __gue_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
+ u8 *protocol, __be16 *sport, int type);
#endif
OpenPOWER on IntegriCloud