Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
64fd39d9
Commit
64fd39d9
authored
Jul 14, 2003
by
David S. Miller
Committed by
David S. Miller
Jul 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP/IPV6]: Check for anycast where we check for multicast.
parent
9c5c251a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+8
-5
No files found.
net/ipv6/tcp_ipv6.c
View file @
64fd39d9
...
...
@@ -967,12 +967,14 @@ static void tcp_v6_send_reset(struct sk_buff *skb)
struct
tcphdr
*
th
=
skb
->
h
.
th
,
*
t1
;
struct
sk_buff
*
buff
;
struct
flowi
fl
;
int
daddr_type
;
if
(
th
->
rst
)
return
;
if
(
ipv6_addr_is_multicast
(
&
skb
->
nh
.
ipv6h
->
daddr
))
return
;
daddr_type
=
ipv6_addr_type
(
&
skb
->
nh
.
ipv6h
->
daddr
);
if
(
daddr_type
&
(
IPV6_ADDR_ANYCAST
|
IPV6_ADDR_MULTICAST
))
return
;
/*
* We need to grab some memory, and put together an RST,
...
...
@@ -1171,13 +1173,14 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
struct
tcp_opt
tmptp
,
*
tp
=
tcp_sk
(
sk
);
struct
open_request
*
req
=
NULL
;
__u32
isn
=
TCP_SKB_CB
(
skb
)
->
when
;
int
daddr_type
;
if
(
skb
->
protocol
==
htons
(
ETH_P_IP
))
return
tcp_v4_conn_request
(
sk
,
skb
);
/* FIXME: do the same check for anycast */
if
(
ipv6_addr_is_multicast
(
&
skb
->
nh
.
ipv6h
->
daddr
))
goto
drop
;
daddr_type
=
ipv6_addr_type
(
&
skb
->
nh
.
ipv6h
->
daddr
);
if
(
daddr_type
&
(
IPV6_ADDR_ANYCAST
|
IPV6_ADDR_MULTICAST
))
goto
drop
;
/*
* There are no SYN attacks on IPv6, yet...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment