]> git.baikalelectronics.ru Git - kernel.git/commit
rose: Set the destination address in rose_header
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 2 Mar 2015 06:01:30 +0000 (00:01 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2015 21:43:39 +0000 (16:43 -0500)
commitd67080a7f4c51ea59984166eb16243ae2aa86151
tree3e8ecfae46207e6fbcd7549b64f08ce19574b406
parentec40b7ae830d6f837ce0e913eb2e071e77674693
rose: Set the destination address in rose_header

Not setting the destination address is a bug that I suspect causes no
problems today, as only the arp code seems to call dev_hard_header and
the description I have of rose is that it is expected to be used with a
static neigbour table.

I have derived the offset and the length of the rose destination address
from rose_rebuild_header where arp_find calls neigh_ha_snapshot to set
the destination address.

Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-hams@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rose/rose_dev.c