Hi,
ROSE_PACLEN was defined by a substraction using a fixed constant value
of 256 in af_rose.c
#define ROSE_PACLEN (256-ROSE_MIN_LEN)
For more convenience 256 is replaced by AX25_DEF_PACLEN default size
declared in ax25.h which is the actual AX25 MTU.
signed off by Bernard Pidoux, [EMAIL PROTECTED]
--- linux-2.6.24-rc5/net/rose/af_rose.c 2007-12-11 04:48:43.000000000 +0100
+++ b/net/rose/af_rose.c 2007-12-14 14:35:16.000000000 +0100
@@ -1148,7 +1148,7 @@
}
#ifdef M_BIT
-#define ROSE_PACLEN (256-ROSE_MIN_LEN)
+#define ROSE_PACLEN (AX25_DEF_PACLEN-ROSE_MIN_LEN)
if (skb->len - ROSE_MIN_LEN > ROSE_PACLEN) {
unsigned char header[ROSE_MIN_LEN];
struct sk_buff *skbn;