Penguin
Diff: LinuxNetlinkSocketExample
EditPageHistoryDiffInfoLikePages

Differences between current version and revision by previous author of LinuxNetlinkSocketExample.

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 7 Last edited on Wednesday, January 3, 2007 4:19:15 am by ThomasHisch
Older page: version 6 Last edited on Friday, February 3, 2006 6:50:07 am by MarcoPolci Revert
@@ -11,8 +11,9 @@
 #include <sys/socket.h> 
 #include <unistd.h> 
 #include <err.h> 
 #include <stdio.h> 
+#include <string.h>  
 #include <netinet/in.h> 
  
 #include <linux/netlink.h> 
 #include <linux/rtnetlink.h> 
@@ -111,13 +112,15 @@
  return 0; 
 
  
 int main(int argc, char *argv[]) 
-{ int nls = open_netlink(); 
+{  
+ int nls = open_netlink(); 
  if (nls<0) { 
  err(1,"netlink"); 
 
+  
  while (1) 
  read_event(nls); 
  return 0; 
 
 </verbatim>