summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Modernize daemon_start(3).Ralf Baechle2015-05-202-12/+8
| | | | | | | daemon_start(3) was implemented using ancient APIs. Modernize and simplify using setsid(). Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Ignore "compile" file.Ralf Baechle2015-05-181-0/+1
| | | | | | | | | | | | automake 1.14 will install this file into the top directory with "automake --add-missing" and complain if it's missing: $ automake configure.ac:10: error: required file './compile' not found configure.ac:10: 'automake --add-missing' can install 'compile' $ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* automake: Replace use of deprecated automake macro INCLUDES.Ralf Baechle2015-05-171-2/+2
| | | | | | | | | | This fixes the automake warning: Makefile.am:6: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') INCLUDES has been deprecated since automake 1.5. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* axutils.c: Fix warning.Ralf Baechle2015-05-071-1/+2
| | | | | | | | | | | | | | libtool: compile: gcc -DHAVE_CONFIG_H -I. -DAX25_SYSCONFDIR=\"/usr/local/etc/ax 25/\" -DAX25_LOCALSTATEDIR=\"/usr/local/var/ax25/\" -g -O2 -Wall -MT axutils.lo -MD -MP -MF .deps/axutils.Tpo -c axutils.c -fPIC -DPIC -o .libs/axutils.o axutils.c: In function 'rose_aton': axutils.c:169:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=] printf("axutils: invalid rose address '%s' length = %d\n", addr, strlen(addr)); ^ Fixed by using a %z conversion which is a construct introduced for C99. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Reformat consistently. Strictly whitespace changes only.Ralf Baechle2013-06-174-223/+223
| | | | | | | Indentation by tabs only. Move case labels in switches are on the same level as the switch keyword. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove pointless return statements at the end of void functions.Ralf Baechle2013-06-171-1/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Always have a space between if, for, switch, while and the following `('.Ralf Baechle2013-06-173-3/+3
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove parenthesis around arguments of return statements.Ralf Baechle2013-06-172-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use tabs for indentation, not spaces.Ralf Baechle2013-06-179-72/+72
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove useless initializations to 0 or NULL.Ralf Baechle2013-06-174-7/+7
| | | | | | They only inflate the .data section of the binary. Initializations to FALSE are still left to do. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Delete useless definition of _LINUX_STRING_H_.Ralf Baechle2013-06-173-6/+0
| | | | | | | Originally this appeared to have been an attempt to avoid the inclusion of the kernels's <linux/string.h>. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing whitespace.Ralf Baechle2013-06-1722-95/+95
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing blank lines.Ralf Baechle2013-06-178-11/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use dist_ prefix in Makefile.am rather than EXTRA_DIST where possible.Ralf Baechle2013-06-171-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Bump version to 0.0.12-rc4.libax25-0.0.12-rc4Ralf Baechle2013-06-171-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Building the rpm requires zlib-devel.Ralf Baechle2013-06-061-0/+1
| | | | | | Building without succeeds but doesn't yield a full-featured package. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove generated file ltconfig.Ralf Baechle2013-06-042-3017/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Ignore even more generated files.Ralf Baechle2013-06-041-0/+7
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove generated file config.h.Ralf Baechle2013-06-041-92/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Convert .cvsignore files to .gitignoreRalf Baechle2013-06-041-9/+9
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Bump version number to 0.0.12-rc3.libax25-0.0.12-rc3Ralf Baechle2013-05-311-1/+1
|
* Replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS.Ralf Baechle2013-05-301-2/+2
| | | | | | | Since the introduction of AC_CONFIG_HEADERS in automake 1.7 AM_CONFIG_HEADER has been deprecated and it has finally been removed in automake 1.12. So this change also generates a dependency on automake 1.7 or newer.
* Fixed Bug: libax25 cannot find interfaces with callsign's without SSID.Thomas Osterried2012-01-314-33/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* cosmetic changesThomas Osterried2011-01-161-7/+6
|
* fix in ax25_aton() and in ax25_aton_arglist() - very old bug:Thomas Osterried2010-09-161-2/+2
| | | | | | | | | | | | | Stored only 7 of max 8 (AX25_MAX_DIGIS) digipeaters from ascii string to the struct full_sockaddr_ax25 *fsap. Why? int n = 0; do { ... } while (n < AX25_MAX_DIGIS && *bp); Everyone should say "oh yes, n = 0; -> do ... while n < MAX_DIGIS". But: in the loop n is increased by one. Thus only 7 of 8 arguments hav been copied. do { ... } while (n <= AX25_MAX_DIGIS && *bp); fixes this issue.
* 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-262-38/+40
| | | | | | | | | - 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
* ax25_ntoa: Don't emit SSID suffix if the SSID is zero.Ralf Baechle2009-09-102-6/+14
| | | | From: Matti Aarnio OH2MQK <matti.aarnio@zmailer.org>
* Add support for building rpm packages.Ralf Baechle2009-06-275-2/+70
| | | | Now just a rpmbuild -ta <foo.tar.gz> will do.
* Renovate AC_CONFIG usage.Ralf Baechle2009-06-271-1/+2
|
* Bump version number to 0.0.12-rc2.libax25-0.0.12-rc2Ralf Baechle2009-06-211-1/+1
|
* Convert configure.ac from deprecated AC_HEADER_EGREP to AC_EGREP_HEADER.Ralf Baechle2009-06-211-3/+3
|
* Install libc substitute headers only if really needed.Ralf Baechle2009-06-205-6/+21
| | | | And only to the correct path.
* Move all header files to be installed to new subdirectory netax25.Ralf Baechle2009-06-2022-77/+40
|
* Update libax25 copies of libc headers.Ralf Baechle2009-06-203-28/+29
| | | | | kernel_ax25.h, kernel_netrom.h and kernel_rose.h are outdated copies from libc; upgrade them from glibc 2.10.
* Remove generated file config.h.Ralf Baechle2009-06-191-0/+1
|
* Remove AC_CONFIG_MACRO_DIR and ACLOCAL_AMFLAGS = -I m4 again.Ralf Baechle2009-06-193-4/+0
| | | | | | | | | | This is recommended by autoreconf by the following warning: libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. For some reason I don't have the time to track down right now it results in a configure script with a syntax error being generated.
* Remove all generated files.Ralf Baechle2009-06-1916-40221/+16
| | | | | | | | | | | | | | Keeping generated files in CVS doesn't only tend to produce large and cluttered files it also may result in build problems due to timestamps in the wrong order. So dump everything, update .cvsignore to ignore these files and resolve all warnings generated by autoreconf. From now on users of a CVS checkout should run the command autoreconf --install --force after having done a CVS checkout. For this to succeed automake, autoconf and libtool will have to be installed.
* Eleminate use of register keywordRalf Baechle2009-06-141-1/+1
| | | | | Any modern C compiler will just ignore register so it's just cluttering the screen.
* Bump version number to 0.0.12-rc1.libax25-0.0.12-rc1Ralf Baechle2009-06-063-11/+20
|
* nrconfig.c: call comparison fix.Thomas Osterried2009-04-093-53/+104
| | | | | axconfig.c, nrconfig.c and rsconfig.c: assurances against null pointer deferences.
* small fix for the last patchThomas Osterried2009-04-091-8/+11
|
* This is a fix for a bug introduced 2008-04-02, which caused interfacesThomas Osterried2009-04-091-19/+59
| | | | | containing CALL without SSID not being found anymore (user had to address CALL-0 instead of just CALL).
* From Matti Aarnio (oh2mqk@sral.fi):Ralf Baechle2008-04-029-449/+432
| | | | | | | | | | | | | | | | * axconfig.c: Find all running network ports, and compare them against the /etc/ax25/axports file. * nrconfig.c: Find all running network ports, and compare them against the /etc/ax25/nrports file. * rsconfig.c: Find all running network ports, and compare them against the /etc/ax25/rsports file. * Update man pages
* Fix pile of warnings about differing signedness. One of them looksRalf Baechle2007-01-235-19/+31
| | | | like a real buglet for some architectures.
* Fix warning about // style comment. Actually remove the commentRalf Baechle2007-01-231-2/+2
| | | | because it was pointless anyway.
* Fix warning about lost const pointer attribute.Ralf Baechle2007-01-231-1/+1
|
* Update to ignore all generated files.Ralf Baechle2007-01-221-1/+3
|
* Regenerate all the autotools provided files - some were ancient andRalf Baechle2007-01-2213-7365/+24501
| | | | | | would have failed on some modern systems. Sole exception is the old INSTALL file, libax25 had its own. Maybe we should drop for simplicity; it doesn't provide alot of information.
* Move all acconfig.h stuff into configure.in. This silences autoheader.Ralf Baechle2007-01-212-11/+3
|