]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blobdiff - net-tools/patches/002-net-tools-ipx.patch
net-tools: Update to 2.0 git-rev e5f1be13.
[people/pmueller/ipfire-3.x.git] / net-tools / patches / 002-net-tools-ipx.patch
diff --git a/net-tools/patches/002-net-tools-ipx.patch b/net-tools/patches/002-net-tools-ipx.patch
new file mode 100644 (file)
index 0000000..ec78145
--- /dev/null
@@ -0,0 +1,31 @@
+diff -up net-tools-2.0/lib/ipx_gr.c.ipx net-tools-2.0/lib/ipx_gr.c
+--- net-tools-2.0/lib/ipx_gr.c.ipx     2013-09-10 12:33:52.494047907 +0200
++++ net-tools-2.0/lib/ipx_gr.c 2013-09-10 12:34:28.531561603 +0200
+@@ -72,7 +72,7 @@ int IPX_rprint(int options)
+           continue;
+       /* Fetch and resolve the Destination */
+-      (void) ap->input(5, net, &sa);
++      (void) ap->input(1, net, &sa);
+       safe_strncpy(net, ap->sprint(&sa, numeric), sizeof(net));
+       /* Fetch and resolve the Router Net */
+diff -up net-tools-2.0/netstat.c.ipx net-tools-2.0/netstat.c
+--- net-tools-2.0/netstat.c.ipx        2013-09-10 12:33:52.491047948 +0200
++++ net-tools-2.0/netstat.c    2013-09-10 12:33:52.495047894 +0200
+@@ -1643,13 +1643,13 @@ static int ipx_info(void)
+       }
+       /* Fetch and resolve the Source */
+-      (void) ap->input(4, sad, &sa);
++      (void) ap->input(0, sad, &sa);
+       safe_strncpy(buf, ap->sprint(&sa, flag_not & FLAG_NUM_HOST), sizeof(buf));
+       snprintf(sad, sizeof(sad), "%s:%04X", buf, sport);
+       if (!nc) {
+           /* Fetch and resolve the Destination */
+-          (void) ap->input(4, dad, &sa);
++          (void) ap->input(0, dad, &sa);
+           safe_strncpy(buf, ap->sprint(&sa, flag_not & FLAG_NUM_HOST), sizeof(buf));
+           snprintf(dad, sizeof(dad), "%s:%04X", buf, dport);
+       } else