* Libax25 procutils.c for NetRom local node
@ 2010-05-11 8:41 Bernard Pidoux f6bvp
0 siblings, 0 replies; only message in thread
From: Bernard Pidoux f6bvp @ 2010-05-11 8:41 UTC (permalink / raw)
To: Thomas Osterried DL9SAU; +Cc: Ralf Baechle DL5RB, linux-hams
Hi Thomas,
I noticed that in libax25 the routine used to read /proc/net/nr_nodes
only initialized local NetRom node name, alias and n parameters.
Quality and Obs parameters are not initialized.
FPAC node packet switch application is compatible with NetRom.
When reading NetRom nodes list using the AX.25 library it is
confused by the local node entries with zero Quality and Obs values.
When the node is broadcasting NetRom table it propagates local node
parameters to other NetRom nodes, and Quality zero is also propagated
over the network.
I patched read_proc_nr_nodes() in order to initialize local node
quality = 255
obs (persist) = 6
w = 1
With the above local node initialized parameters, adjacent NetRom
nodes can now modify and broadcast Quality and other link parameters.
And we don't see NetRom node with zero quality in NetRom tables
over the net.
Here is the patch :
--- libax25-0.0.12-rc2/procutils.c 2009-11-26 18:37:42.000000000 +0100
+++ libax25-0.0.12-rc2/procutils.c 2010-05-11 01:19:35.005268719 +0200
@@ -391,6 +391,10 @@
if ((cp = nr_config_get_alias(name)) == NULL)
break;
safe_strncpy(new->alias, cp, 6);
+
+ new->w = 1; /* local node w */
+ new->qual1 = 255; /* obviously, local node quality should be set to maximum value */
+ new->obs1 = 6; /* persist */
/*
* n == 0 indicates a local node.
*/
73 de Bernard, f6bvp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-11 8:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-11 8:41 Libax25 procutils.c for NetRom local node Bernard Pidoux f6bvp
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.