| To: | dlstevens@xxxxxxxxxx |
|---|---|
| Subject: | Re: Source Specific Query of MLDv2 [PATCH] |
| From: | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx> |
| Date: | Sat, 07 Feb 2004 13:22:33 +0900 (JST) |
| Cc: | davem@xxxxxxxxxx, hibi665@xxxxxxx, netdev@xxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx |
| In-reply-to: | <OF293C5854.C480643B-ON88256E33.0016BE45-88256E33.0016EBE0@xxxxxxxxxx> |
| Organization: | USAGI Project |
| References: | <20040206195325.207aa1c7.davem@xxxxxxxxxx> <OF293C5854.C480643B-ON88256E33.0016BE45-88256E33.0016EBE0@xxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
In article
<OF293C5854.C480643B-ON88256E33.0016BE45-88256E33.0016EBE0@xxxxxxxxxx> (at Fri,
6 Feb 2004 21:12:59 -0700), David Stevens <dlstevens@xxxxxxxxxx> says:
> > David, please don't pollute global name space so badly :-)
> > ipv6_is_mld() would be fine.
>
> Of course, sorry about that. :-)
Why not in icmpv6_rcv()?
we need to do pskb_pull() before touching type/code.
> int ip6_mc_input(struct sk_buff *skb)
> {
> - struct ipv6hdr *hdr;
> - int deliver = 0;
> + int deliver = 1;
> int discard = 1;
>
> IP6_INC_STATS_BH(Ip6InMcastPkts);
>
> - hdr = skb->nh.ipv6h;
> - if (ipv6_chk_mcast_addr(skb->dev, &hdr->daddr, &hdr->saddr))
> - deliver = 1;
> -
Please do not remove this.
We need to check destination (but not source)
because the driver may be in "promisc." mode.
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH][IPV6][NDISC] unify ipv6 output routine, YOSHIFUJI Hideaki / 吉藤英明 |
|---|---|
| Next by Date: | Re: Source Specific Query of MLDv2 [PATCH], David S. Miller |
| Previous by Thread: | Re: Source Specific Query of MLDv2 [PATCH], David Stevens |
| Next by Thread: | Re: Source Specific Query of MLDv2 [PATCH], David Stevens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |