jpopelka / rpms / net-tools

Forked from rpms/net-tools 4 years ago
Clone
5aa31a
diff -up net-tools-2.0/lib/ipx_gr.c.ipx net-tools-2.0/lib/ipx_gr.c
5aa31a
--- net-tools-2.0/lib/ipx_gr.c.ipx	2013-09-10 12:33:52.494047907 +0200
5aa31a
+++ net-tools-2.0/lib/ipx_gr.c	2013-09-10 12:34:28.531561603 +0200
5aa31a
@@ -72,7 +72,7 @@ int IPX_rprint(int options)
5aa31a
 	    continue;
5aa31a
 
5aa31a
 	/* Fetch and resolve the Destination */
5aa31a
-	(void) ap->input(5, net, &sa);
5aa31a
+	(void) ap->input(1, net, &sa);
5aa31a
 	safe_strncpy(net, ap->sprint(&sa, numeric), sizeof(net));
5aa31a
 
5aa31a
 	/* Fetch and resolve the Router Net */
5aa31a
diff -up net-tools-2.0/netstat.c.ipx net-tools-2.0/netstat.c
5aa31a
--- net-tools-2.0/netstat.c.ipx	2013-09-10 12:33:52.491047948 +0200
5aa31a
+++ net-tools-2.0/netstat.c	2013-09-10 12:33:52.495047894 +0200
5aa31a
@@ -1643,13 +1643,13 @@ static int ipx_info(void)
5aa31a
 	}
5aa31a
 
5aa31a
 	/* Fetch and resolve the Source */
5aa31a
-	(void) ap->input(4, sad, &sa);
5aa31a
+	(void) ap->input(0, sad, &sa);
5aa31a
 	safe_strncpy(buf, ap->sprint(&sa, flag_not & FLAG_NUM_HOST), sizeof(buf));
5aa31a
 	snprintf(sad, sizeof(sad), "%s:%04X", buf, sport);
5aa31a
 
5aa31a
 	if (!nc) {
5aa31a
 	    /* Fetch and resolve the Destination */
5aa31a
-	    (void) ap->input(4, dad, &sa);
5aa31a
+	    (void) ap->input(0, dad, &sa);
5aa31a
 	    safe_strncpy(buf, ap->sprint(&sa, flag_not & FLAG_NUM_HOST), sizeof(buf));
5aa31a
 	    snprintf(dad, sizeof(dad), "%s:%04X", buf, dport);
5aa31a
 	} else