patch-2.3.14 linux/net/ipv4/igmp.c
Next file: linux/net/ipv4/ip_forward.c
Previous file: linux/net/ipv4/icmp.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Wed Aug 18 11:38:48 1999
- Orig file:
v2.3.13/linux/net/ipv4/igmp.c
- Orig date:
Wed Jun 9 14:45:37 1999
diff -u --recursive --new-file v2.3.13/linux/net/ipv4/igmp.c linux/net/ipv4/igmp.c
@@ -158,7 +158,7 @@
#define IGMP_SIZE (sizeof(struct igmphdr)+sizeof(struct iphdr)+4)
-static int igmp_send_report(struct device *dev, u32 group, int type)
+static int igmp_send_report(struct net_device *dev, u32 group, int type)
{
struct sk_buff *skb;
struct iphdr *iph;
@@ -359,7 +359,7 @@
static void ip_mc_filter_add(struct in_device *in_dev, u32 addr)
{
char buf[MAX_ADDR_LEN];
- struct device *dev = in_dev->dev;
+ struct net_device *dev = in_dev->dev;
/* Checking for IFF_MULTICAST here is WRONG-WRONG-WRONG.
We will get multicast token leakage, when IFF_MULTICAST
@@ -379,7 +379,7 @@
static void ip_mc_filter_del(struct in_device *in_dev, u32 addr)
{
char buf[MAX_ADDR_LEN];
- struct device *dev = in_dev->dev;
+ struct net_device *dev = in_dev->dev;
if (arp_mc_map(addr, buf, dev, 0) == 0)
dev_mc_delete(dev,buf,dev->addr_len,0);
@@ -547,7 +547,7 @@
static struct in_device * ip_mc_find_dev(struct ip_mreqn *imr)
{
struct rtable *rt;
- struct device *dev = NULL;
+ struct net_device *dev = NULL;
if (imr->imr_address.s_addr) {
dev = ip_dev_find(imr->imr_address.s_addr);
@@ -684,7 +684,7 @@
up(&ip_sk_mc_sem);
}
-int ip_check_mc(struct device *dev, u32 mc_addr)
+int ip_check_mc(struct net_device *dev, u32 mc_addr)
{
struct in_device *in_dev = dev->ip_ptr;
struct ip_mc_list *im;
@@ -710,7 +710,7 @@
off_t pos=0, begin=0;
struct ip_mc_list *im;
int len=0;
- struct device *dev;
+ struct net_device *dev;
len=sprintf(buffer,"Idx\tDevice : Count Querier\tGroup Users Timer\tReporter\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)