summaryrefslogtreecommitdiffstats
path: root/procutils.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed Bug: libax25 cannot find interfaces with callsign's without SSID.Thomas Osterried2012-01-311-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In http://www.linux-ax25.org/cvsweb/libax25/ChangeLog we read: Revision 1.8: download - view: text, markup, annotated - select for diffs Thu Sep 10 16:53:28 2009 UTC (2 years, 4 months ago) by ralf Branches: MAIN CVS tags: HEAD Diff to: previous 1.7: preferred, colored Changes since revision 1.7: +5 -0 lines ax25_ntoa: Don't emit SSID suffix if the SSID is zero. From: Matti Aarnio OH2MQK <matti.aarnio@zmailer.org> In http://www.linux-ax25.org/cvsweb/libax25/axutils.c.diff?r1=1.4;r2=1.5 funtion char *ax25_ntoa(const ax25_address *a): - *s++ = '-'; + /* Convention is: -0 suffixes are NOT printed */ + if (a->ax25_call[6] & 0x1E) { + *s++ = '-'; - if ((n = ((a->ax25_call[6] >> 1) & 0x0F)) > 9) { - *s++ = '1'; - n -= 10; + if ((n = ((a->ax25_call[6] >> 1) & 0x0F)) > 9) { + *s++ = '1'; + n -= 10; + } + *s++ = n + '0'; } - - *s++ = n + '0'; + *s++ = '\0'; This is diametral to the previous situation, where ax25_ntoa always returned a call with SSID. Unfortunately, that patch broke a fixe introduced in April 2009; that patch fixed the same issue introduced by a patch in April 2008: http://www.linux-ax25.org/cvsweb/libax25/axconfig.c This is a fix for a bug introduced 2008-04-02, which caused interfaces containing CALL without SSID not being found anymore (user had to address CALL-0 instead of just CALL). http://www.linux-ax25.org/cvsweb/libax25/axconfig.c.diff?r1=1.7;r2=1.8 [..] + /* user may have configured "DL9SAU". But we compare to *ifcalls, + * which comes from ifr_hwaddr.sa_data and it always contains a SSID; + * in this case, "DL9SAU-0". This fixes a bug introduced 2008-04-02, + * which caused interfaces without SSID not being found anymore. :( + */ [..] It has been overseen that libax25 internaly uses ax25_ntoa, not just for user-presentation. The fix today resolves the problem, and cleans up helper routines like strip_zero_ssid() that are no longer needed. Affected files: axconfig.c, nrconfig.c and procutils.c.
* Patch by Bernard Pidoux f6bvpThomas Osterried2010-05-111-0/+4
| | | | | | | | | | | | | | | He 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 were not initialized. He suggest to patch 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.
* patch submitted by Bernard Pidoux f6bvpThomas Osterried2009-11-261-19/+20
| | | | | | | | | - in proc_ax25 structure timers members size declared in procutils.h. Since in kernel 2.6 the timers are now in milliseconds, they need more place to be saved (unsigned short --> unsigned long). - in procutils.h and procutils.c in structure proc_rs_neigh field "use" was missing, in function read_proc_rs_neigh proc_rs_neigh use was not read
* Move all header files to be installed to new subdirectory netax25.Ralf Baechle2009-06-201-6/+2
|
* Import libax25 0.0.5 from tarballlibax25-0.0.5Ralf Baechle1999-07-081-2/+0
|
* Import ax25-lib 0.0.2 from tarballax25-lib-0.0.2Ralf Baechle1999-04-211-76/+432
|
* Import ax25-lib 0.0.1 from tarballax25-lib-0.0.1Ralf Baechle1999-04-101-0/+331