net-tools-1.60-23 netstat ampr ROSE
PATCH 1/1 net-tools-1.60-23 netstat ampr ROSE
Hi,
Netstat is a part of net-tools package. This utility program is quite usefull for displaying linux network sockets and kernel routing tables.
It already includes AX.25 and Netrom sockets contents and NetRom route table.
Terry Dawson VK2KTJ, implemented (although partially ?) ROSE in netstat, some time ago (date ?).
I completed the work with a patch against the last net-tools source I found at http://packages.debian.org/sid/net-tools
Here follows the patch.
73 de Bernard, f6bvp
config.in +2 -2
@@ -54,7 +54,7 @@ bool 'Appletalk DDP protocol family' HAVE_AFATALK y bool 'AX25 (packet radio) protocol family' HAVE_AFAX25 y bool 'NET/ROM (packet radio) protocol family' HAVE_AFNETROM y -bool 'Rose (packet radio) protocol family' HAVE_AFROSE n +bool 'Rose (packet radio) protocol family' HAVE_AFROSE y bool 'X.25 (CCITT) protocol family' HAVE_AFX25 y bool 'Econet protocol family' HAVE_AFECONET n bool 'DECnet protocol family' HAVE_AFDECnet n
@@ -71,7 +71,7 @@ bool 'STRIP (Metricom radio) support' HAVE_HWSTRIP y bool 'Token ring (generic) support' HAVE_HWTR y bool 'AX25 (packet radio) support' HAVE_HWAX25 y -bool 'Rose (packet radio) support' HAVE_HWROSE n +bool 'Rose (packet radio) support' HAVE_HWROSE y bool 'NET/ROM (packet radio) support' HAVE_HWNETROM y bool 'X.25 (generic) support' HAVE_HWX25 y bool 'DLCI/FRAD (frame relay) support' HAVE_HWFR y
lib/af.c +5 -0
@@ -32,6 +32,7 @@int flag_ax25;int flag_ddp;int flag_netrom; +int flag_rose;int flag_inet;int flag_inet6;int flag_econet;
@@ -64,6 +65,9 @@"netrom" ,"netrom" , &flag_netrom }, { +"rose" ,"rose" , &flag_rose + }, + {"inet" ,"inet" , &flag_inet }, {
@@ -100,6 +104,7 @@extern struct aftype inet6_aftype;extern struct aftype ax25_aftype;extern struct aftype netrom_aftype; +extern struct aftype rose_aftype;extern struct aftype ipx_aftype;extern struct aftype ddp_aftype;extern struct aftype ec_aftype;
lib/getroute.c +4 -0
@@ -44,6 +44,7 @@extern struct aftype inet6_aftype;extern struct aftype ax25_aftype;extern struct aftype netrom_aftype; +extern struct aftype rose_aftype;extern struct aftype ipx_aftype;extern struct aftype ddp_aftype;extern struct aftype x25_aftype;
@@ -59,6 +60,9 @@#if HAVE_AFNETROM netrom_aftype.rprint = NETROM_rprint;#endif +#if HAVE_AFROSE + rose_aftype.rprint = ROSE_rprint; +#endif #if HAVE_AFAX25 ax25_aftype.rprint = AX25_rprint;#endif
lib/net-support.h +4 -0
@@ -109,6 +109,7 @@extern int DDP_rprint (int options);extern int IPX_rprint (int options);extern int NETROM_rprint (int options); +extern int ROSE_rprint (int options);extern int AX25_rprint (int options);extern int X25_rprint (int options);
@@ -117,6 +118,7 @@extern int DDP_rinput (int action,int flags,char **argv);extern int IPX_rinput (int action,int flags,char **argv);extern int NETROM_rinput (int action,int flags,char **argv); +extern int ROSE_rinput (int action,int flags,char **argv);extern int AX25_rinput (int action,int flags,char **argv);extern int X25_rinput (int action,int flags,char **argv);
@@ -130,6 +132,7 @@extern int flag_ax25;extern int flag_ddp;extern int flag_netrom; +extern int flag_rose;extern int flag_x25;extern int flag_inet;extern int flag_inet6;
@@ -143,6 +146,7 @@ {"ipx", 0, 0, 1}, \ {"appletalk", 0, 0, 1}, \ {"netrom", 0, 0, 1}, \ + {"rose", 0, 0, 1}, \ {"inet", 0, 0, 1}, \ {"inet6", 0, 0, 1}, \ {"ddp", 0, 0, 1}, \
lib/pathnames.h +3 -0
@@ -41,6 +41,9 @@#define _PATH_PROCNET_DEV "/proc/net/dev"#define _PATH_PROCNET_RARP "/proc/net/rarp"#define _PATH_ETHERS "/etc/ethers" +#define _PATH_PROCNET_ROSE "/proc/net/rose" +#define _PATH_PROCNET_ROSE_NEIGH "/proc/net/rose_neigh" +#define _PATH_PROCNET_ROSE_NODES "/proc/net/rose_nodes"#define _PATH_PROCNET_ROSE_ROUTE "/proc/net/rose_routes"#define _PATH_PROCNET_X25 "/proc/net/x25"#define _PATH_PROCNET_X25_ROUTE "/proc/net/x25_routes"
lib/rose_gr.c +39 -15
72 lines not on this page · raw message
netstat.c +59 -2
94 lines not on this page · raw message
po/fr.po +14 -6
@@ -797,7 +797,7 @@ #: ../netstat.c:394 ../netstat.c:1089 ../netstat.c:1166 msgid "LISTENING" -msgstr "LISTENING" +msgstr "ECOUTE" #: ../netstat.c:395 msgid "CONN SENT"
@@ -809,11 +809,19 @@ #: ../netstat.c:397 ../netstat.c:464 ../netstat.c:809 ../netstat.c:1169 msgid "ESTABLISHED" -msgstr "ESTABLISHED" +msgstr "ETABLIE" -#: ../netstat.c:419 +#: ../netstat.c:467 msgid "Active NET/ROM sockets\n" -msgstr "sockets NET/ROM actives\n" +msgstr "Prises (sockets) NET/ROM actives\n" + +#: ../netstat.c:521 +msgid "Active ROSE sockets\n" +msgstr "Prises (sockets) ROSE actives\n" + +#: ../netstat.c:522 +msgid "dest_addr dest_call src_addr src_call dev lci neigh state\n" +msgstr "Destinat call_dest Source call_src Periph lci Voisin Etat \n" #: ../netstat.c:420 msgid ""
@@ -826,7 +834,7 @@ #: ../netstat.c:430 ../netstat.c:1208 #, c-format msgid "Problem reading data from %s\n" -msgstr "" +msgstr "Ne peut lire les donn�es de %s\n" #: ../netstat.c:465 msgid "SYN_SENT"
@@ -1008,7 +1016,7 @@ #: ../netstat.c:1184 msgid "Active AX.25 sockets\n" -msgstr "Sockets AX.25 actives\n" +msgstr "Prises (sockets) AX.25 actives\n" #: ../netstat.c:1185 msgid "Dest Source Device State Vr/Vs Send-Q Recv-Q\n"
Quoted 8 lines · Bernard Pidoux
It already includes AX.25 and Netrom sockets contents and NetRom route table.
Terry Dawson VK2KTJ, implemented (although partially ?) ROSE in netstat, some time ago (date ?).
I completed the work with a patch against the last net-tools source I found at http://packages.debian.org/sid/net-tools
Hi Bernard,
Thanks for the cc: I'd lost this list and am pleased to have a pointer to where it again.
regards
Terry