Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55960
b: refs/heads/master
c: 5bb1ab0
h: refs/heads/master
v: v3
  • Loading branch information
David L Stevens authored and David S. Miller committed May 11, 2007
1 parent e690835 commit 61f94f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac40e41f4ddec8882d3f7bc8fa98a4fce8796aff
refs/heads/master: 5bb1ab09e4f6287c0b6c9cdbd463147cbd003f54
13 changes: 10 additions & 3 deletions trunk/net/ipv6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,17 @@ int ip6_forward(struct sk_buff *skb)
*/
if (xrlim_allow(dst, 1*HZ))
ndisc_send_redirect(skb, n, target);
} else if (ipv6_addr_type(&hdr->saddr)&(IPV6_ADDR_MULTICAST|IPV6_ADDR_LOOPBACK
|IPV6_ADDR_LINKLOCAL)) {
} else {
int addrtype = ipv6_addr_type(&hdr->saddr);

/* This check is security critical. */
goto error;
if (addrtype & (IPV6_ADDR_MULTICAST|IPV6_ADDR_LOOPBACK))
goto error;
if (addrtype & IPV6_ADDR_LINKLOCAL) {
icmpv6_send(skb, ICMPV6_DEST_UNREACH,
ICMPV6_NOT_NEIGHBOUR, 0, skb->dev);
goto error;
}
}

if (skb->len > dst_mtu(dst)) {
Expand Down

0 comments on commit 61f94f9

Please sign in to comment.