mpls: Functions for reading and wrinting mpls labels over netlink
[firefly-linux-kernel-4.4.55.git] / net / mpls / internal.h
index c2944cb84d484bb97a50e0cd8f25573bfe09cfc4..fb6de92052c4bc87db6c83ba5288f2f921e13c62 100644 (file)
@@ -53,4 +53,7 @@ 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[]);
+
 #endif /* MPLS_INTERNAL_H */