diff options
author | Roopa Prabhu <roopa@cumulusnetworks.com> | 2015-07-21 10:43:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-21 10:39:04 -0700 |
commit | face0188e31b3cfc598d8dc3470e28e00fb3b07c (patch) | |
tree | bba5775efa3a2e514a9752041af2c7613a59f443 /net/mpls/internal.h | |
parent | 74a0f2fe8ed51e3adbb1c882be04672fe7bb6996 (diff) | |
download | linux-stable-face0188e31b3cfc598d8dc3470e28e00fb3b07c.tar.gz linux-stable-face0188e31b3cfc598d8dc3470e28e00fb3b07c.tar.bz2 linux-stable-face0188e31b3cfc598d8dc3470e28e00fb3b07c.zip |
mpls: export mpls functions for use by mpls iptunnels
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mpls/internal.h')
-rw-r--r-- | net/mpls/internal.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/mpls/internal.h b/net/mpls/internal.h index 8cabeb5a1cb9..2681a4ba6c37 100644 --- a/net/mpls/internal.h +++ b/net/mpls/internal.h @@ -50,7 +50,12 @@ static inline struct mpls_entry_decoded mpls_entry_decode(struct mpls_shim_hdr * return result; } -int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels, const u32 label[]); -int nla_get_labels(const struct nlattr *nla, u32 max_labels, u32 *labels, u32 label[]); +int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels, + const u32 label[]); +int nla_get_labels(const struct nlattr *nla, u32 max_labels, u32 *labels, + u32 label[]); +bool mpls_output_possible(const struct net_device *dev); +unsigned int mpls_dev_mtu(const struct net_device *dev); +bool mpls_pkt_too_big(const struct sk_buff *skb, unsigned int mtu); #endif /* MPLS_INTERNAL_H */ |