in linux commit 15e473046cb6e5d18a4d0057e61d76315230382b, a struct member name was changed from pid to portid. This patch makes the corresponding change. might break earlier kernels.
Signed-off-by: Russell Senior <russ...@personaltelco.net> --- net/wprobe/src/kernel/wprobe-core.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/wprobe/src/kernel/wprobe-core.c b/net/wprobe/src/kernel/wprobe-core.c index ee68a8e..83337c3 100644 --- a/net/wprobe/src/kernel/wprobe-core.c +++ b/net/wprobe/src/kernel/wprobe-core.c @@ -441,7 +441,7 @@ wprobe_send_item_value(struct sk_buff *msg, struct netlink_callback *cb, struct wprobe_value *val = dev->query_val; u64 time = val[i].last - val[i].first; - hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq, + hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, &wprobe_fam, NLM_F_MULTI, WPROBE_CMD_GET_INFO); if (nla_put_u32(msg, WPROBE_ATTR_ID, i)) @@ -514,7 +514,7 @@ wprobe_send_item_info(struct sk_buff *msg, struct netlink_callback *cb, { struct genlmsghdr *hdr; - hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq, + hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, &wprobe_fam, NLM_F_MULTI, WPROBE_CMD_GET_LIST); if ((i == 0) && (dev->addr != NULL)) { @@ -557,7 +557,7 @@ wprobe_dump_filter_group(struct sk_buff *msg, struct wprobe_filter_group *fg, st struct nlattr *group, *item; int i; - hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq, + hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, &wprobe_fam, NLM_F_MULTI, WPROBE_CMD_GET_FILTER); if (!hdr) return false; @@ -639,7 +639,7 @@ wprobe_dump_link(struct sk_buff *msg, struct wprobe_link *l, struct netlink_call { struct genlmsghdr *hdr; - hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).pid, cb->nlh->nlmsg_seq, + hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, &wprobe_fam, NLM_F_MULTI, WPROBE_CMD_GET_LINKS); if (!hdr) return false; -- 1.7.2.2 -- Russell Senior, President russ...@personaltelco.net _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel