Subject: [PATCH 1/1]NET:AX25:NETROM Corrects the returned added header length.
Corrects the returned added header length.

Signed-off-by: Richard Stearn <[email protected]>
---
 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)
--
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to