Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352401
b: refs/heads/master
c: 2031409
h: refs/heads/master
i:
  352399: f703788
v: v3
  • Loading branch information
Hannes Frederic Sowa authored and David S. Miller committed Feb 11, 2013
1 parent a9b8158 commit 5e88e89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd40851521361e07c1f61e79cca941a63ad311bc
refs/heads/master: 20314092c1b41894d8c181bf9aa6f022be2416aa
9 changes: 9 additions & 0 deletions trunk/net/ipv6/ip6_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ int ipv6_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt
ipv6_addr_loopback(&hdr->daddr))
goto err;

/* RFC4291 2.7
* Nodes must not originate a packet to a multicast address whose scope
* field contains the reserved value 0; if such a packet is received, it
* must be silently dropped.
*/
if (ipv6_addr_is_multicast(&hdr->daddr) &&
IPV6_ADDR_MC_SCOPE(&hdr->daddr) == 0)
goto err;

/*
* RFC4291 2.7
* Multicast addresses must not be used as source addresses in IPv6
Expand Down

0 comments on commit 5e88e89

Please sign in to comment.