projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rose: Set the destination address in rose_header
[firefly-linux-kernel-4.4.55.git]
/
net
/
rose
/
rose_dev.c
diff --git
a/net/rose/rose_dev.c
b/net/rose/rose_dev.c
index 50005888be573245fc1d30b8f38bc90b10c89698..24d2b40b6c6b45e1edeacddbecefa585f693cc81 100644
(file)
--- 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,
{
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;