summaryrefslogtreecommitdiffstats
path: root/ax25/rxecho.c
Commit message (Collapse)AuthorAgeFilesLines
* rxecho: Increase space allocated for network interface name to IFNAMSIZ.Ralf Baechle2021-07-271-2/+2
| | | | | | | | | | | | | | | The previous hardcoded value was ok when used with the old SOCK_PACKET which was truncating network interface names to 14 bytes anyway. When support for the new-fangled PF_PACKET was added this became a bug. While technically a buffer overflow it is something that could only be exploited by root himself. Even more, due to alignment rules used by all Linux architectures the two bytes following the overflowed arrays would be unused anyway because an int is following, so this would actually end up working as intended, not as coded. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Fixes: 5415c1237782
* rxecho: rip out support for PF_INET, SOCK_PACKET sockets.Ralf Baechle2021-07-271-59/+0
| | | | | | | The kernel warns of those since Linux 2.1.68 which was released on 1997-11-30. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Update all references to the FSF's address.Ralf Baechle2019-04-111-1/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Remove casts of a type to the same type.Ralf Baechle2017-08-031-1/+1
| | | | | | | | | | | | | This is using the following semantic patch: @identitycast@ type T; T *A; @@ - (T *) A + A Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Kill assignments in if conditions.Ralf Baechle2017-07-311-8/+16
| | | | | | | | | | | | | | | | | | | | Somewhat hard to read and the code base already has many overlong lines. Found with below spatch file and some manual editing in ax25/access.c to restore a comment lost by spatch. @parens@ expression E, F, G; binary operator X; statement S; @@ - if ((E = F) X G) + E = F; + if (E X G) S Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove support for !defined(__GLIBC__) and __GLIBC__ != 2.Ralf Baechle2017-02-061-8/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Add a git suffix to the version number used by all programs.Ralf Baechle2017-01-241-1/+2
| | | | | | | This uses a setlocalversion script derived from the kernel's scripts/setlocalversion. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Reformat consistently. Strictly whitespace changes only.Ralf Baechle2013-06-171-11/+11
| | | | | | | 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>
* Use tabs for indentation, not spaces.Ralf Baechle2013-06-171-5/+5
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing whitespace.Ralf Baechle2013-06-171-11/+11
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove use of backwards compatibility header name.Ralf Baechle2009-06-211-8/+0
| | | | | | Glibc as old as 2.2 provides working headers under the right name and if not libax25 would install headers under the right name so this has become redundant and ugly.
* Fix type of length argument to sockset syscalls.Ralf Baechle2009-06-141-2/+3
| | | | | | | | 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.
* changed mail addressesThomas Osterried2008-04-271-2/+2
|
* Fix warnings about // style comment. And remove some of the mostRalf Baechle2007-01-231-24/+30
| | | | pointless comments.
* rxecho did not multiplex to more than one iface after the firstThomas Osterried2005-10-301-8/+128
| | | | | | | matching iface was found. from my old readme: fyi: if you have problems with kernel messages like "protocol ... is buggy", please drop me a note. there seems to be a bug in af_packet.c.
* used PF_PACKET for SOCK_PACKET sockets, added time.h to axspawn.cMichael Taylor2002-11-031-1/+1
|
* Import ax25-tools 0.0.4 from tarballax25-tools-0.0.4Ralf Baechle1999-08-101-0/+6
|
* Import ax25-tools 0.0.2 from tarballax25-tools-0.0.2Ralf Baechle1999-06-071-2/+11
|
* Import ax25-tools 0.0.1 from tarballax25-tools-0.0.1Ralf Baechle1999-04-211-0/+376