Re: 2.1.111 AX.25 changes ?

Matthias Welwarsky (dg2fef@afthd.tu-darmstadt.de)
Sun, 26 Jul 1998 12:45:31 +0200


This is a multi-part message in MIME format.
--------------0B5F8B4D3D59BC9894EBEF72
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Pierfrancesco Caci wrote:
>
> Did something change with AX.25 support in 2.1.111 ? It doesn't
> recognise my ax25d.conf file anymore with an error like "bad parameter
> for port vhf" or something like that.
>

The following patch should fix this.

Gruss,
Matthias
--------------0B5F8B4D3D59BC9894EBEF72
Content-Type: text/plain; charset=us-ascii; name="af_ax25.c.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="af_ax25.c.patch"

--- af_ax25.c.old Sun Jul 26 12:26:22 1998
+++ af_ax25.c Sun Jul 26 12:39:02 1998
@@ -1009,7 +1009,10 @@
if (sk->zapped == 0)
return -EINVAL;

- if (addr_len != sizeof(struct sockaddr_ax25) && addr_len != sizeof(struct full_sockaddr_ax25))
+ if (addr_len < sizeof(struct sockaddr_ax25) || addr_len > sizeof(struct full_sockaddr_ax25))
+ return -EINVAL;
+
+ if (addr_len < (addr->fsa_ax25.sax25_ndigis * sizeof(ax25_address) + sizeof(struct sockaddr_ax25)))
return -EINVAL;

if (addr->fsa_ax25.sax25_family != AF_AX25)

--------------0B5F8B4D3D59BC9894EBEF72--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html