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
Kirill Smelkov
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
Show 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,11 +967,13 @@ static void tcp_v6_send_reset(struct sk_buff *skb)
...
@@ -967,11 +967,13 @@ static void tcp_v6_send_reset(struct sk_buff *skb)
struct
tcphdr
*
th
=
skb
->
h
.
th
,
*
t1
;
struct
tcphdr
*
th
=
skb
->
h
.
th
,
*
t1
;
struct
sk_buff
*
buff
;
struct
sk_buff
*
buff
;
struct
flowi
fl
;
struct
flowi
fl
;
int
daddr_type
;
if
(
th
->
rst
)
if
(
th
->
rst
)
return
;
return
;
if
(
ipv6_addr_is_multicast
(
&
skb
->
nh
.
ipv6h
->
daddr
))
daddr_type
=
ipv6_addr_type
(
&
skb
->
nh
.
ipv6h
->
daddr
);
if
(
daddr_type
&
(
IPV6_ADDR_ANYCAST
|
IPV6_ADDR_MULTICAST
))
return
;
return
;
/*
/*
...
@@ -1171,12 +1173,13 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
...
@@ -1171,12 +1173,13 @@ static int tcp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
struct
tcp_opt
tmptp
,
*
tp
=
tcp_sk
(
sk
);
struct
tcp_opt
tmptp
,
*
tp
=
tcp_sk
(
sk
);
struct
open_request
*
req
=
NULL
;
struct
open_request
*
req
=
NULL
;
__u32
isn
=
TCP_SKB_CB
(
skb
)
->
when
;
__u32
isn
=
TCP_SKB_CB
(
skb
)
->
when
;
int
daddr_type
;
if
(
skb
->
protocol
==
htons
(
ETH_P_IP
))
if
(
skb
->
protocol
==
htons
(
ETH_P_IP
))
return
tcp_v4_conn_request
(
sk
,
skb
);
return
tcp_v4_conn_request
(
sk
,
skb
);
/* FIXME: do the same check for anycast */
daddr_type
=
ipv6_addr_type
(
&
skb
->
nh
.
ipv6h
->
daddr
);
if
(
ipv6_addr_is_multicast
(
&
skb
->
nh
.
ipv6h
->
daddr
))
if
(
daddr_type
&
(
IPV6_ADDR_ANYCAST
|
IPV6_ADDR_MULTICAST
))
goto
drop
;
goto
drop
;
/*
/*
...
...
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