Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275655
b: refs/heads/master
c: c457338
h: refs/heads/master
i:
  275653: ea783e6
  275651: 77dcb5b
  275647: 0983e03
v: v3
  • Loading branch information
Brian Haley authored and David S. Miller committed Nov 8, 2011
1 parent 6900e02 commit 050f9fd
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 10953db8e1a278742ef7e64a3d1491802bcfa98b
refs/heads/master: c457338d7acd3823e765b684a62294cfda9d2f55
8 changes: 8 additions & 0 deletions trunk/net/ipv6/ip6_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ 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
* Multicast addresses must not be used as source addresses in IPv6
* packets or appear in any Routing header.
*/
if (ipv6_addr_is_multicast(&hdr->saddr))
goto err;

skb->transport_header = skb->network_header + sizeof(*hdr);
IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);

Expand Down

0 comments on commit 050f9fd

Please sign in to comment.