This uses is_multicast_ether_addr() because it has recently been changed to do
the same thing these seperate tests are doing.

Signed-off-by: Kris Katterjohn <[EMAIL PROTECTED]>

Thanks!

--- x/net/atm/br2684.c  2006-01-02 21:21:10.000000000 -0600
+++ y/net/atm/br2684.c  2006-01-06 12:34:47.000000000 -0600
@@ -295,7 +295,7 @@ static inline __be16 br_type_trans(struc
        unsigned char *rawp;
        eth = eth_hdr(skb);
 
-       if (*eth->h_dest & 1) {
+       if (is_multicast_ether_addr(eth->h_dest)) {
                if (memcmp(eth->h_dest, dev->broadcast, ETH_ALEN) == 0)
                        skb->pkt_type = PACKET_BROADCAST;
                else


--- x/net/bridge/br_input.c     2006-01-02 21:21:10.000000000 -0600
+++ y/net/bridge/br_input.c     2006-01-06 12:31:59.000000000 -0600
@@ -63,7 +63,7 @@ int br_handle_frame_finish(struct sk_buf
                }
        }
 
-       if (dest[0] & 1) {
+       if (is_multicast_ether_addr(dest)) {
                br_flood_forward(br, skb, !passedup);
                if (!passedup)
                        br_pass_frame_up(br, skb);


--- x/net/ethernet/eth.c        2006-01-05 21:28:02.000000000 -0600
+++ y/net/ethernet/eth.c        2006-01-06 12:21:04.000000000 -0600
@@ -163,7 +163,7 @@ __be16 eth_type_trans(struct sk_buff *sk
        skb_pull(skb,ETH_HLEN);
        eth = eth_hdr(skb);
        
-       if (*eth->h_dest&1) {
+       if (is_multicast_ether_addr(eth->h_dest)) {
                if (!compare_ether_addr(eth->h_dest, dev->broadcast))
                        skb->pkt_type = PACKET_BROADCAST;
                else


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to