aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-01-12 17:47:08 -0500
committerSteve French <sfrench@us.ibm.com>2006-01-12 17:47:08 -0500
commit94bc2be31a01a3055ec94176e595dfe208e92d3b (patch)
treeebfbe81c6718a6390bfa1b99c6d228237d818576 /net/atm
parentc32a0b689cb9cc160cfcd19735bbf50bb70c6ef4 (diff)
parent58cba4650a7a414eabd2b40cc9d8e45fcdf192d9 (diff)
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'net/atm')
-rw-r--r--net/atm/br2684.c7
-rw-r--r--net/atm/clip.c1
-rw-r--r--net/atm/ioctl.c1
-rw-r--r--net/atm/lec.c10
-rw-r--r--net/atm/mpc.c3
-rw-r--r--net/atm/pppoatm.c1
-rw-r--r--net/atm/pvc.c2
-rw-r--r--net/atm/raw.c1
-rw-r--r--net/atm/resources.c1
-rw-r--r--net/atm/svc.c2
10 files changed, 18 insertions, 11 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c
index 72f3f7b8de..680ccb12aa 100644
--- a/net/atm/br2684.c
+++ b/net/atm/br2684.c
@@ -18,6 +18,7 @@ Author: Marcell GAL, 2000, XDSL Ltd, Hungary
18#include <net/arp.h> 18#include <net/arp.h>
19#include <linux/atm.h> 19#include <linux/atm.h>
20#include <linux/atmdev.h> 20#include <linux/atmdev.h>
21#include <linux/capability.h>
21#include <linux/seq_file.h> 22#include <linux/seq_file.h>
22 23
23#include <linux/atmbr2684.h> 24#include <linux/atmbr2684.h>
@@ -295,14 +296,14 @@ static inline __be16 br_type_trans(struct sk_buff *skb, struct net_device *dev)
295 unsigned char *rawp; 296 unsigned char *rawp;
296 eth = eth_hdr(skb); 297 eth = eth_hdr(skb);
297 298
298 if (*eth->h_dest & 1) { 299 if (is_multicast_ether_addr(eth->h_dest)) {
299 if (memcmp(eth->h_dest, dev->broadcast, ETH_ALEN) == 0) 300 if (!compare_ether_addr(eth->h_dest, dev->broadcast))
300 skb->pkt_type = PACKET_BROADCAST; 301 skb->pkt_type = PACKET_BROADCAST;
301 else 302 else
302 skb->pkt_type = PACKET_MULTICAST; 303 skb->pkt_type = PACKET_MULTICAST;
303 } 304 }
304 305
305 else if (memcmp(eth->h_dest, dev->dev_addr, ETH_ALEN)) 306 else if (compare_ether_addr(eth->h_dest, dev->dev_addr))
306 skb->pkt_type = PACKET_OTHERHOST; 307 skb->pkt_type = PACKET_OTHERHOST;
307 308
308 if (ntohs(eth->h_proto) >= 1536) 309 if (ntohs(eth->h_proto) >= 1536)
diff --git a/net/atm/clip.c b/net/atm/clip.c
index 4f54c9a5e8..73370de975 100644
--- a/net/atm/clip.c
+++ b/net/atm/clip.c
@@ -19,6 +19,7 @@
19#include <linux/atmdev.h> 19#include <linux/atmdev.h>
20#include <linux/atmclip.h> 20#include <linux/atmclip.h>
21#include <linux/atmarp.h> 21#include <linux/atmarp.h>
22#include <linux/capability.h>
22#include <linux/ip.h> /* for net/route.h */ 23#include <linux/ip.h> /* for net/route.h */
23#include <linux/in.h> /* for struct sockaddr_in */ 24#include <linux/in.h> /* for struct sockaddr_in */
24#include <linux/if.h> /* for IFF_UP */ 25#include <linux/if.h> /* for IFF_UP */
diff --git a/net/atm/ioctl.c b/net/atm/ioctl.c
index a150198b05..eb109af7eb 100644
--- a/net/atm/ioctl.c
+++ b/net/atm/ioctl.c
@@ -12,6 +12,7 @@
12#include <linux/atmdev.h> 12#include <linux/atmdev.h>
13#include <linux/atmclip.h> /* CLIP_*ENCAP */ 13#include <linux/atmclip.h> /* CLIP_*ENCAP */
14#include <linux/atmarp.h> /* manifest constants */ 14#include <linux/atmarp.h> /* manifest constants */
15#include <linux/capability.h>
15#include <linux/sonet.h> /* for ioctls */ 16#include <linux/sonet.h> /* for ioctls */
16#include <linux/atmsvc.h> 17#include <linux/atmsvc.h>
17#include <linux/atmmpc.h> 18#include <linux/atmmpc.h>
diff --git a/net/atm/lec.c b/net/atm/lec.c
index ad840b9afb..c4fc722fef 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -7,6 +7,7 @@
7#include <linux/config.h> 7#include <linux/config.h>
8#include <linux/kernel.h> 8#include <linux/kernel.h>
9#include <linux/bitops.h> 9#include <linux/bitops.h>
10#include <linux/capability.h>
10 11
11/* We are ethernet device */ 12/* We are ethernet device */
12#include <linux/if_ether.h> 13#include <linux/if_ether.h>
@@ -1321,7 +1322,7 @@ static int lane2_associate_req (struct net_device *dev, u8 *lan_dst,
1321 struct sk_buff *skb; 1322 struct sk_buff *skb;
1322 struct lec_priv *priv = (struct lec_priv*)dev->priv; 1323 struct lec_priv *priv = (struct lec_priv*)dev->priv;
1323 1324
1324 if ( memcmp(lan_dst, dev->dev_addr, ETH_ALEN) != 0 ) 1325 if (compare_ether_addr(lan_dst, dev->dev_addr))
1325 return (0); /* not our mac address */ 1326 return (0); /* not our mac address */
1326 1327
1327 kfree(priv->tlvs); /* NULL if there was no previous association */ 1328 kfree(priv->tlvs); /* NULL if there was no previous association */
@@ -1798,7 +1799,7 @@ lec_arp_find(struct lec_priv *priv,
1798 1799
1799 to_return = priv->lec_arp_tables[place]; 1800 to_return = priv->lec_arp_tables[place];
1800 while(to_return) { 1801 while(to_return) {
1801 if (memcmp(mac_addr, to_return->mac_addr, ETH_ALEN) == 0) { 1802 if (!compare_ether_addr(mac_addr, to_return->mac_addr)) {
1802 return to_return; 1803 return to_return;
1803 } 1804 }
1804 to_return = to_return->next; 1805 to_return = to_return->next;
@@ -1811,8 +1812,7 @@ make_entry(struct lec_priv *priv, unsigned char *mac_addr)
1811{ 1812{
1812 struct lec_arp_table *to_return; 1813 struct lec_arp_table *to_return;
1813 1814
1814 to_return = (struct lec_arp_table *) kmalloc(sizeof(struct lec_arp_table), 1815 to_return = kmalloc(sizeof(struct lec_arp_table), GFP_ATOMIC);
1815 GFP_ATOMIC);
1816 if (!to_return) { 1816 if (!to_return) {
1817 printk("LEC: Arp entry kmalloc failed\n"); 1817 printk("LEC: Arp entry kmalloc failed\n");
1818 return NULL; 1818 return NULL;
@@ -2002,7 +2002,7 @@ lec_arp_resolve(struct lec_priv *priv, unsigned char *mac_to_find,
2002 return priv->mcast_vcc; 2002 return priv->mcast_vcc;
2003 break; 2003 break;
2004 case 2: /* LANE2 wants arp for multicast addresses */ 2004 case 2: /* LANE2 wants arp for multicast addresses */
2005 if ( memcmp(mac_to_find, bus_mac, ETH_ALEN) == 0) 2005 if (!compare_ether_addr(mac_to_find, bus_mac))
2006 return priv->mcast_vcc; 2006 return priv->mcast_vcc;
2007 break; 2007 break;
2008 default: 2008 default:
diff --git a/net/atm/mpc.c b/net/atm/mpc.c
index 526d953141..c304ef1513 100644
--- a/net/atm/mpc.c
+++ b/net/atm/mpc.c
@@ -3,6 +3,7 @@
3#include <linux/timer.h> 3#include <linux/timer.h>
4#include <linux/init.h> 4#include <linux/init.h>
5#include <linux/bitops.h> 5#include <linux/bitops.h>
6#include <linux/capability.h>
6#include <linux/seq_file.h> 7#include <linux/seq_file.h>
7 8
8/* We are an ethernet device */ 9/* We are an ethernet device */
@@ -552,7 +553,7 @@ static int mpc_send_packet(struct sk_buff *skb, struct net_device *dev)
552 goto non_ip; /* Multi-Protocol Over ATM :-) */ 553 goto non_ip; /* Multi-Protocol Over ATM :-) */
553 554
554 while (i < mpc->number_of_mps_macs) { 555 while (i < mpc->number_of_mps_macs) {
555 if (memcmp(eth->h_dest, (mpc->mps_macs + i*ETH_ALEN), ETH_ALEN) == 0) 556 if (!compare_ether_addr(eth->h_dest, (mpc->mps_macs + i*ETH_ALEN)))
556 if ( send_via_shortcut(skb, mpc) == 0 ) /* try shortcut */ 557 if ( send_via_shortcut(skb, mpc) == 0 ) /* try shortcut */
557 return 0; /* success! */ 558 return 0; /* success! */
558 i++; 559 i++;
diff --git a/net/atm/pppoatm.c b/net/atm/pppoatm.c
index 58f4a2b5ae..1489067c1e 100644
--- a/net/atm/pppoatm.c
+++ b/net/atm/pppoatm.c
@@ -39,6 +39,7 @@
39#include <linux/skbuff.h> 39#include <linux/skbuff.h>
40#include <linux/atm.h> 40#include <linux/atm.h>
41#include <linux/atmdev.h> 41#include <linux/atmdev.h>
42#include <linux/capability.h>
42#include <linux/ppp_defs.h> 43#include <linux/ppp_defs.h>
43#include <linux/if_ppp.h> 44#include <linux/if_ppp.h>
44#include <linux/ppp_channel.h> 45#include <linux/ppp_channel.h>
diff --git a/net/atm/pvc.c b/net/atm/pvc.c
index 2684a92da2..f2c541774d 100644
--- a/net/atm/pvc.c
+++ b/net/atm/pvc.c
@@ -102,7 +102,7 @@ static int pvc_getname(struct socket *sock,struct sockaddr *sockaddr,
102} 102}
103 103
104 104
105static struct proto_ops pvc_proto_ops = { 105static const struct proto_ops pvc_proto_ops = {
106 .family = PF_ATMPVC, 106 .family = PF_ATMPVC,
107 .owner = THIS_MODULE, 107 .owner = THIS_MODULE,
108 108
diff --git a/net/atm/raw.c b/net/atm/raw.c
index 4a0466e91a..3e57b17ca5 100644
--- a/net/atm/raw.c
+++ b/net/atm/raw.c
@@ -6,6 +6,7 @@
6#include <linux/module.h> 6#include <linux/module.h>
7#include <linux/sched.h> 7#include <linux/sched.h>
8#include <linux/atmdev.h> 8#include <linux/atmdev.h>
9#include <linux/capability.h>
9#include <linux/kernel.h> 10#include <linux/kernel.h>
10#include <linux/skbuff.h> 11#include <linux/skbuff.h>
11#include <linux/mm.h> 12#include <linux/mm.h>
diff --git a/net/atm/resources.c b/net/atm/resources.c
index c8c459fcb0..224190537c 100644
--- a/net/atm/resources.c
+++ b/net/atm/resources.c
@@ -16,6 +16,7 @@
16#include <linux/kernel.h> /* for barrier */ 16#include <linux/kernel.h> /* for barrier */
17#include <linux/module.h> 17#include <linux/module.h>
18#include <linux/bitops.h> 18#include <linux/bitops.h>
19#include <linux/capability.h>
19#include <linux/delay.h> 20#include <linux/delay.h>
20#include <net/sock.h> /* for struct sock */ 21#include <net/sock.h> /* for struct sock */
21 22
diff --git a/net/atm/svc.c b/net/atm/svc.c
index d7b266136b..3a180cfd7b 100644
--- a/net/atm/svc.c
+++ b/net/atm/svc.c
@@ -613,7 +613,7 @@ static int svc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
613 return error; 613 return error;
614} 614}
615 615
616static struct proto_ops svc_proto_ops = { 616static const struct proto_ops svc_proto_ops = {
617 .family = PF_ATMSVC, 617 .family = PF_ATMSVC,
618 .owner = THIS_MODULE, 618 .owner = THIS_MODULE,
619 619