[<prev] [next>] [day] [month] [year] [list]
Message-Id: <201607160950.u6G9o6qr015904@ux4.g1sog>
Date: Sat, 16 Jul 2016 10:50:06 +0100
From: Richard Stearn <richard@...-stearn.demon.co.uk>
To: netdev@...r.kernel.org, linux-hams@...r.kernel.org
Subject: [PATCH 1/1]NET:AX25:NETROM Corrects the returned added header
length.
Subject: [PATCH 1/1]NET:AX25:NETROM Corrects the returned added header length.
Corrects the returned added header length.
Signed-off-by: Richard Stearn <richard@...-stearn.demon.co.uk>
---
net/netrom/nr_dev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/netrom/nr_dev.c b/net/netrom/nr_dev.c
index 988f542..07b9fe4 100644
--- a/net/netrom/nr_dev.c
+++ b/net/netrom/nr_dev.c
@@ -93,9 +93,9 @@ static int nr_header(struct sk_buff *skb, struct net_device *dev,
*buff++ = NR_PROTOEXT;
if (daddr != NULL)
- return 37;
+ return NR_NETWORK_LEN + NR_TRANSPORT_LEN;
- return -37;
+ return -(NR_NETWORK_LEN + NR_TRANSPORT_LEN);
}
static int __must_check nr_set_mac_address(struct net_device *dev, void *addr)
Powered by blists - more mailing lists