Skip to content

Commit

Permalink
NET: hamradio: Fix IP over bpq encapsulation.
Browse files Browse the repository at this point in the history
Since 1d5da75 (ax25: Stop using magic
neighbour cache operations.) any attempt to transmit IP packets over
a bpqether device will result in a message like "Dead loop on virtual
device bpq0, fix it urgently!"

Fix suggested by Eric W. Biederman <ebiederm@xmission.com>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: <stable@vger.kernel.org> # 4.1
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
ralfbaechle authored and davem330 committed Jul 8, 2015
1 parent 32f675b commit aa43c5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/hamradio/bpqether.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ static void bpq_setup(struct net_device *dev)
memcpy(dev->dev_addr, &ax25_defaddr, AX25_ADDR_LEN);

dev->flags = 0;
dev->features = NETIF_F_LLTX; /* Allow recursion */

#if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
dev->header_ops = &ax25_header_ops;
Expand Down

0 comments on commit aa43c5f

Please sign in to comment.