]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/tipc/core.h
tipc: let broadcast packet reception use new link receive function
[karo-tx-linux.git] / net / tipc / core.h
index 645dcac9575d569e3e8c20b4f634a73a8ed7956f..6d589aaad05457f2ddf06f42197ac554b39a542c 100644 (file)
@@ -115,6 +115,11 @@ static inline struct tipc_net *tipc_net(struct net *net)
        return net_generic(net, tipc_net_id);
 }
 
+static inline int tipc_netid(struct net *net)
+{
+       return tipc_net(net)->net_id;
+}
+
 static inline u16 mod(u16 x)
 {
        return x & 0xffffu;