Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90731
b: refs/heads/master
c: 7ef3abd
h: refs/heads/master
i:
  90729: 1d90694
  90727: a457a38
v: v3
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Apr 15, 2008
1 parent 53f582c commit 0895b83
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 45 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99971e70fdc1862e120f3319fc0a4dba8c728acf
refs/heads/master: 7ef3abd2104232a35f259dad6a213310edc7c9fe
1 change: 0 additions & 1 deletion trunk/include/net/irda/irlan_eth.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ struct net_device *alloc_irlandev(const char *name);
int irlan_eth_receive(void *instance, void *sap, struct sk_buff *skb);

void irlan_eth_flow_indication( void *instance, void *sap, LOCAL_FLOW flow);
void irlan_eth_send_gratuitous_arp(struct net_device *dev);
#endif
10 changes: 0 additions & 10 deletions trunk/net/irda/irlan/irlan_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@
#include <net/irda/irlan_filter.h>


/*
* Send gratuitous ARP when connected to a new AP or not. May be a clever
* thing to do, but for some reason the machine crashes if you use DHCP. So
* lets not use it by default.
*/
#undef CONFIG_IRLAN_SEND_GRATUITOUS_ARP

/* extern char sysctl_devname[]; */

/*
Expand Down Expand Up @@ -393,9 +386,6 @@ static void irlan_connect_confirm(void *instance, void *sap,
/* Ready to transfer Ethernet frames */
netif_start_queue(self->dev);
self->disconnect_reason = 0; /* Clear reason */
#ifdef CONFIG_IRLAN_SEND_GRATUITOUS_ARP
irlan_eth_send_gratuitous_arp(&self->dev);
#endif
wake_up_interruptible(&self->open_wait);
}

Expand Down
33 changes: 0 additions & 33 deletions trunk/net/irda/irlan/irlan_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,39 +288,6 @@ void irlan_eth_flow_indication(void *instance, void *sap, LOCAL_FLOW flow)
}
}

/*
* Function irlan_etc_send_gratuitous_arp (dev)
*
* Send gratuitous ARP to announce that we have changed
* hardware address, so that all peers updates their ARP tables
*/
void irlan_eth_send_gratuitous_arp(struct net_device *dev)
{
#ifdef CONFIG_INET
struct in_device *in_dev;

/*
* When we get a new MAC address do a gratuitous ARP. This
* is useful if we have changed access points on the same
* subnet.
*/
IRDA_DEBUG(4, "IrLAN: Sending gratuitous ARP\n");
rcu_read_lock();
in_dev = __in_dev_get_rcu(dev);
if (in_dev == NULL)
goto out;
if (in_dev->ifa_list)

arp_send(ARPOP_REQUEST, ETH_P_ARP,
in_dev->ifa_list->ifa_address,
dev,
in_dev->ifa_list->ifa_address,
NULL, dev->dev_addr, NULL);
out:
rcu_read_unlock();
#endif /* CONFIG_INET */
}

/*
* Function set_multicast_list (dev)
*
Expand Down

0 comments on commit 0895b83

Please sign in to comment.