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
2135f3fb
Commit
2135f3fb
authored
Jul 18, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP/IPV6]: Revert previous anycast changes.
parent
86df0e66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+6
-9
No files found.
net/ipv6/tcp_ipv6.c
View file @
2135f3fb
...
...
@@ -579,7 +579,7 @@ static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr,
addr_type
=
ipv6_addr_type
(
&
usin
->
sin6_addr
);
if
(
addr_type
&
(
IPV6_ADDR_ANYCAST
|
IPV6_ADDR_MULTICAST
)
)
if
(
addr_type
&
IPV6_ADDR_MULTICAST
)
return
-
ENETUNREACH
;
if
(
addr_type
&
IPV6_ADDR_LINKLOCAL
)
{
...
...
@@ -967,13 +967,11 @@ 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
;
daddr_type
=
ipv6_addr_type
(
&
skb
->
nh
.
ipv6h
->
daddr
);
if
(
daddr_type
&
(
IPV6_ADDR_ANYCAST
|
IPV6_ADDR_MULTICAST
))
if
(
ipv6_addr_is_multicast
(
&
skb
->
nh
.
ipv6h
->
daddr
))
return
;
/*
...
...
@@ -1173,13 +1171,12 @@ 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
);
daddr_type
=
ipv6_addr_type
(
&
skb
->
nh
.
ipv6h
->
daddr
);
if
(
daddr_type
&
(
IPV6_ADDR_ANYCAST
|
IPV6_ADDR_MULTICAST
))
/* FIXME: do the same check for anycast */
if
(
ipv6_addr_is_multicast
(
&
skb
->
nh
.
ipv6h
->
daddr
))
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