summaryrefslogtreecommitdiffstats
path: root/ax25ipd
Commit message (Collapse)AuthorAgeFilesLines
* ax25ipd/process.c: Fix signedness compiler warnings.Ralf Baechle2015-06-081-1/+1
| | | | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25"\" -DUSE_TERMIO -g -O2 - Wall -MT process.o -MD -MP -MF .deps/process.Tpo -c -o process.o process.c process.c: In function ‘do_beacon’: process.c:235:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(p, bc_text); /* add the text field */ ^ In file included from /usr/include/memory.h:29:0, from ax25ipd.h:52, from process.c:15: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25ipd: Fix grammar of bpether log message.Ralf Baechle2015-05-281-1/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25ipd: Add support for all Linux-supported bit rates.Ralf Baechle2015-05-282-0/+87
| | | | | | | | | | | | | | | | | For all Linux-supported architectures this adds support for: 57600, 115200, 230400, 460800, 500000, 576000, 1000000, 1152000, 1500000, 2000000, 2500000, 3000000, 3500000 and 4000000 bits per second. For SPARC this also adds suport for 76800, 153600, 307200, 614400 and 921600 bits per second. As before 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200 and 38400 remain supported. Document supported speeds in the ax25ipd.conf(5) man page. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* automake: Replace use of deprecated automake macro INCLUDES.Ralf Baechle2015-05-172-4/+4
| | | | | | | | | | | | | This fixes the automake warnings: Makefile.am:11: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') ax25ipd/Makefile.am:58: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') ax25mond/Makefile.am:46: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') ax25rtd/Makefile.am:89: 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>
* Insert space between `)' and a following `{'.Ralf Baechle2015-05-021-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Reformat consistently. Strictly whitespace changes only.Ralf Baechle2015-05-023-259/+259
| | | | | | | 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 Baechle2015-05-022-3/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Always have a space between if, for, switch, while and the following `('.Ralf Baechle2015-05-022-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove parenthesis around arguments of return statements.Ralf Baechle2015-05-023-6/+6
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use tabs for indentation, not spaces.Ralf Baechle2015-05-024-84/+84
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove useless initializations to 0 or NULL.Ralf Baechle2015-05-021-4/+4
| | | | | | | 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>
* Nuke trailing whitespace.Ralf Baechle2015-05-0210-40/+40
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing blank lines.Ralf Baechle2015-05-023-3/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Fix accidental termination of ax25ipd.Thomas Osterried2015-05-021-0/+20
| | | | | | | | | | ax25ipd sometimes terminated ("normaly") when the remote site (or a router on the way) sent an icmp unreachable. That's a problem with a positive error list (where every unknown error is interpreted as major problem); this makes the code unstable whenever new errno's are implemented in newer kernels.. Signed-off-by: Thomas Osterried <thomas@osterried.de>
* ax25ipd: Make LOGx() macros bulletproof.Ralf Baechle2013-06-173-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LOGL1..LOGL4 macros were defined like: Now consider an invocation like: if (condition) LOGL1(...); else something_different(); CPP will expand this like: if (condition) if (loglevel>0) syslog(LOG_DAEMON | LOG_WARNING, ...); else something_different(); That is the else would now be considered associated with the wrong if. Macro arguments may also not have been evaluated on every invocation making the use of these function-like looking macros not function like. For example: LOGL1("%d", i++); would be expanded to if (loglevel>0) syslog(LOG_DAEMON | LOG_WARNING, i++); That is depending on the value of loglevel i++ would only be incremented if syslog was actually being called. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Kill a ton of useless casts to char * all over the code.Ralf Baechle2013-06-172-12/+15
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25ipd: Remove useless casts of inet_ntoa() return values to char *.Ralf Baechle2013-06-161-4/+4
| | | | | | inet_ntoa() already returns char *. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25ipd: Fix metric butload of type aliasing bugs.Ralf Baechle2013-06-161-7/+8
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Weed out all use of RCS strings.Ralf Baechle2013-06-051-2/+0
| | | | | | | Their value has always been dubious and git doesn't support them so let's get rid of the clutter. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove all definitions of docdir from makefiles.Ralf Baechle2013-06-041-1/+0
| | | | | | | This may result in docfiles getting installed in ${prefix}/doc/, not ${prefix}/share/doc which is the convention. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Ignore even more generated files.Ralf Baechle2013-06-041-4/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Convert .cvsignore files to .gitignoreRalf Baechle2013-06-041-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove generated man pages on make distclean.Ralf Baechle2013-06-041-0/+1
|
* Include man page source files in generated dist archives.Ralf Baechle2013-06-041-1/+1
|
* Fix build of man pages when building in a separate build directory.Ralf Baechle2013-06-041-2/+2
|
* axudp: make "udp <portnumber>" in "route call ip udp port" obsolete; useThomas Osterried2012-02-012-1/+16
| | | | | the port configured with "socket udp <port>"; but you could still specify another port with "route call ip udp anotherPort".
* Fix man page generation.Ralf Baechle2012-01-101-2/+2
| | | | | | | | Since the recent conversion from static to generated man pages some man pages were generated with a wrong section suffix which was breaking installation. Noticed and fixed by Steffen Köhler <sk4@mail.zih.tu-dresden.de>.
* Apply program name transformations also to remaining man page content.Ralf Baechle2011-12-113-16/+36
| | | | | The config files are unaffected; if you need to resolve a name conflict for the config files, use --sysconfdir=/etc and --localstatedir=/var.
* ax25ipd: Mark reference to ax25ipd.conf as part of man page section 5.Ralf Baechle2011-12-111-1/+1
|
* Ignore a few more generated files.Ralf Baechle2009-06-191-0/+1
|
* Remove all generated files.Ralf Baechle2009-06-191-613/+0
| | | | | | | | | | | | | | 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.
* Fix type of length argument to sockset syscalls.Ralf Baechle2009-06-141-1/+1
| | | | | | | | Various socket syscalls receive a length argument that should be a socklen_t rsp. a ptr to a socklen_t but instead int rsp. ptr to int were being passed. While in theory this was a bug it's harmless as dangerously large values would not be used but the issue manifested itself in a significant number of compilation warnings.
* Eleminate use of register keywordRalf Baechle2009-06-142-2/+2
| | | | | Any modern C compiler will just ignore register so it's just cluttering the screen.
* Convert K&R-style function definitions to function prototypes.Ralf Baechle2009-06-147-89/+46
|
* Added some includes. This fixes compilation problems in gentoo,Thomas Osterried2009-04-222-2/+2
| | | | and warnings.
* fix in helpThomas Osterried2009-02-011-6/+6
|
* small fix.Thomas Osterried2009-01-311-0/+3
|
* Better integration in unix98 PTY environments.Thomas Osterried2009-01-314-29/+50
| | | | | | Revised the getopt_long() part. Assured strcpy cases. Thanks to Christoph <dk2crn> for contribution.
* updated author's addressThomas Osterried2009-01-302-2/+2
|
* contact updateThomas Osterried2009-01-192-2/+2
|
* PATH_MAX: linux include standard has changed.Thomas Osterried2008-12-211-1/+2
| | | | now we need to include limits.h
* typoThomas Osterried2008-10-112-2/+2
|
* Support for unix98 ptys ("/dev/ptmx"). Thanks to dk2crn.Thomas Osterried2008-10-115-3/+59
|
* io.c: WRITE to TTY returns -1 EAGAINThomas Osterried2008-04-131-0/+13
| | | | | if ttyqueue is full. The behaviour to give up here was wrong.
* Fix warnings about // style comment. And remove some of the mostRalf Baechle2007-01-232-18/+28
| | | | pointless comments.
* Convert to autoconf 2.59. Delete junk from past centuries.Ralf Baechle2007-01-221-192/+316
|
* Added documention how to configure bpqether interfaces.Thomas Osterried2006-10-051-1/+35
|
* Bugfix: --nofork worked well, but -f not. A break was missing..Thomas Osterried2006-10-041-0/+1
|
* io.c: io_error(): patch from testing upstream version.Thomas Osterried2006-06-102-17/+41
| | | | fixes problem that it tends to terminate even if it need not to
* gcc4.0 sucksThomas Osterried2005-12-091-1/+1
|