|
@@ -2240,20 +2240,16 @@ int udp_v4_early_demux(struct sk_buff *skb)
|
|
|
iph = ip_hdr(skb);
|
|
|
uh = udp_hdr(skb);
|
|
|
|
|
|
- if (skb->pkt_type == PACKET_BROADCAST ||
|
|
|
- skb->pkt_type == PACKET_MULTICAST) {
|
|
|
+ if (skb->pkt_type == PACKET_MULTICAST) {
|
|
|
in_dev = __in_dev_get_rcu(skb->dev);
|
|
|
|
|
|
if (!in_dev)
|
|
|
return 0;
|
|
|
|
|
|
- /* we are supposed to accept bcast packets */
|
|
|
- if (skb->pkt_type == PACKET_MULTICAST) {
|
|
|
- ours = ip_check_mc_rcu(in_dev, iph->daddr, iph->saddr,
|
|
|
- iph->protocol);
|
|
|
- if (!ours)
|
|
|
- return 0;
|
|
|
- }
|
|
|
+ ours = ip_check_mc_rcu(in_dev, iph->daddr, iph->saddr,
|
|
|
+ iph->protocol);
|
|
|
+ if (!ours)
|
|
|
+ return 0;
|
|
|
|
|
|
sk = __udp4_lib_mcast_demux_lookup(net, uh->dest, iph->daddr,
|
|
|
uh->source, iph->saddr,
|