rose: Set the destination address in rose_header
[linux-drm-fsl-dcu.git] / net / rose / rose_dev.c
index 50005888be573245fc1d30b8f38bc90b10c89698..24d2b40b6c6b45e1edeacddbecefa585f693cc81 100644 (file)
@@ -41,6 +41,9 @@ static int rose_header(struct sk_buff *skb, struct net_device *dev,
 {
        unsigned char *buff = skb_push(skb, ROSE_MIN_LEN + 2);
 
+       if (daddr)
+               memcpy(buff + 7, daddr, dev->addr_len);
+
        *buff++ = ROSE_GFI | ROSE_Q_BIT;
        *buff++ = 0x00;
        *buff++ = ROSE_DATA;