aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/rose/rose_dev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/rose/rose_dev.c b/net/rose/rose_dev.c
index 50005888be57..24d2b40b6c6b 100644
--- a/net/rose/rose_dev.c
+++ b/net/rose/rose_dev.c
@@ -41,6 +41,9 @@ static int rose_header(struct sk_buff *skb, struct net_device *dev,
41{ 41{
42 unsigned char *buff = skb_push(skb, ROSE_MIN_LEN + 2); 42 unsigned char *buff = skb_push(skb, ROSE_MIN_LEN + 2);
43 43
44 if (daddr)
45 memcpy(buff + 7, daddr, dev->addr_len);
46
44 *buff++ = ROSE_GFI | ROSE_Q_BIT; 47 *buff++ = ROSE_GFI | ROSE_Q_BIT;
45 *buff++ = 0x00; 48 *buff++ = 0x00;
46 *buff++ = ROSE_DATA; 49 *buff++ = ROSE_DATA;