Skip to contentSkip to conversation

ROSE_PACLEN definition used a number constant value

PATCH New Bernard Pidoux 1 participant 1 message Dec 14, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ROSE_PACLEN definition used a number constant value

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]

net/rose/af_rose.c +1 -1
@@ -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;