* [PATCH] [ROSE] ROSE_PACLEN definition used a number constant value
@ 2007-12-14 22:42 Bernard Pidoux
0 siblings, 0 replies; only message in thread
From: Bernard Pidoux @ 2007-12-14 22:42 UTC (permalink / raw)
To: David S. Miller; +Cc: Ralf Baechle DL5RB, Linux Netdev List
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
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, f6bvp@amsat.org
[-- Attachment #2: rose-2.6.24-rc5.patch5 --]
[-- Type: text/plain, Size: 384 bytes --]
--- 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-14 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-14 22:42 [PATCH] [ROSE] ROSE_PACLEN definition used a number constant value Bernard Pidoux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).