X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fnet%2Fgenetlink.h;h=805de50df00da8255f02edc3757e440654d16762;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=8c2287264266776771e08a2fa4387c5b5542112c;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/include/net/genetlink.h b/include/net/genetlink.h index 8c2287264..805de50df 100644 --- a/include/net/genetlink.h +++ b/include/net/genetlink.h @@ -150,24 +150,4 @@ static inline int genlmsg_unicast(struct sk_buff *skb, u32 pid) return nlmsg_unicast(genl_sock, skb, pid); } -/** - * gennlmsg_data - head of message payload - * @gnlh: genetlink messsage header - */ -static inline void *genlmsg_data(const struct genlmsghdr *gnlh) -{ - return ((unsigned char *) gnlh + GENL_HDRLEN); -} - -/** - * genlmsg_len - length of message payload - * @gnlh: genetlink message header - */ -static inline int genlmsg_len(const struct genlmsghdr *gnlh) -{ - struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - - NLMSG_HDRLEN); - return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); -} - #endif /* __NET_GENERIC_NETLINK_H */