ax25: Refactor to use private neighbour operations.
AX25 already has it's own private arp cache operations to isolate it's abuse of dev_rebuild_header to transmit packets. Add a function ax25_neigh_construct that will allow all of the ax25 devices to force using these operations, so that the generic arp code does not need to. 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>
This commit is contained in:

committed by
David S. Miller

parent
46d4e47abe
commit
3b6a94bed0
@@ -433,6 +433,7 @@ module_exit(dmascc_exit);
|
||||
static void __init dev_setup(struct net_device *dev)
|
||||
{
|
||||
dev->type = ARPHRD_AX25;
|
||||
dev->neigh_priv_len = sizeof(struct ax25_neigh_priv);
|
||||
dev->hard_header_len = AX25_MAX_HEADER_LEN;
|
||||
dev->mtu = 1500;
|
||||
dev->addr_len = AX25_ADDR_LEN;
|
||||
@@ -447,6 +448,7 @@ static const struct net_device_ops scc_netdev_ops = {
|
||||
.ndo_start_xmit = scc_send_packet,
|
||||
.ndo_do_ioctl = scc_ioctl,
|
||||
.ndo_set_mac_address = scc_set_mac_address,
|
||||
.ndo_neigh_construct = ax25_neigh_construct,
|
||||
};
|
||||
|
||||
static int __init setup_adapter(int card_base, int type, int n)
|
||||
|
Reference in New Issue
Block a user