Differences between version 6 and revision by previous author of LinuxNetlinkSocketExample.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 6 | Last edited on Friday, February 3, 2006 6:50:07 am | by MarcoPolci | Revert |
Older page: | version 5 | Last edited on Thursday, September 22, 2005 2:35:44 am | by CamiloMesias | Revert |
@@ -93,9 +93,9 @@
return ret;
}
printf("Type: %i (%s)\n",(nlh.nlmsg_type),lookup_name(typenames,nlh.nlmsg_type));
printf("Flag:");
-#define FLAG(x) if (nlh.nlmsg_type
& x) printf(" %s",#x)
+#define FLAG(x) if (nlh.nlmsg_flags
& x) printf(" %s",#x)
FLAG(NLM_F_REQUEST);
FLAG(NLM_F_MULTI);
FLAG(NLM_F_ACK);
FLAG(NLM_F_ECHO);