summaryrefslogtreecommitdiffstats
path: root/examples/genl-family-get.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-04-03 13:25:37 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-04-03 13:25:37 +0200
commitba57ffc48d3a97421c8358947bc8cf9f2e7ff7c6 (patch)
treefdc23b19a491d255cdf8f755e999d1b191280628 /examples/genl-family-get.c
parentabcaad6b65ed368c13c353ed71619332f76d9c2a (diff)
revert abcaad6b65ed368c13c353ed71619332f76d9c2a
it's deeply broken 8-)
Diffstat (limited to 'examples/genl-family-get.c')
-rw-r--r--examples/genl-family-get.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/genl-family-get.c b/examples/genl-family-get.c
index e6033af..3e741cb 100644
--- a/examples/genl-family-get.c
+++ b/examples/genl-family-get.c
@@ -51,10 +51,6 @@ static int data_cb(const struct nlmsghdr *nlh, void *data)
struct nlattr *tb[CTRL_ATTR_MAX+1];
struct genlmsghdr *genl = mnl_nlmsg_get_data(nlh);
- /* this does not come from the kernel. */
- if (nlh->nlmsg_pid != 0)
- return MNL_CB_OK;
-
mnl_attr_parse_at_offset(nlh, sizeof(*genl), tb, CTRL_ATTR_MAX);
if (tb[CTRL_ATTR_FAMILY_NAME]) {
printf("name=%s\t",