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
b1e63f72
Commit
b1e63f72
authored
Feb 05, 2004
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Clean-up NS (including DAD) vs tentative address.
parent
353131f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+17
-16
No files found.
net/ipv6/ndisc.c
View file @
b1e63f72
...
...
@@ -764,23 +764,24 @@ static void ndisc_recv_ns(struct sk_buff *skb)
does DAD, otherwise we ignore solicitations
until DAD timer expires.
*/
if
(
addr_type
==
IPV6_ADDR_ANY
)
{
if
(
addr_type
!=
IPV6_ADDR_ANY
)
{
in6_ifa_put
(
ifp
);
return
;
}
if
(
dev
->
type
==
ARPHRD_IEEE802_TR
)
{
unsigned
char
*
sadr
=
skb
->
mac
.
raw
;
if
(((
sadr
[
8
]
&
0x7f
)
!=
(
dev
->
dev_addr
[
0
]
&
0x7f
))
||
(
sadr
[
9
]
!=
dev
->
dev_addr
[
1
])
||
(
sadr
[
10
]
!=
dev
->
dev_addr
[
2
])
||
(
sadr
[
11
]
!=
dev
->
dev_addr
[
3
])
||
(
sadr
[
12
]
!=
dev
->
dev_addr
[
4
])
||
(
sadr
[
13
]
!=
dev
->
dev_addr
[
5
]))
{
addrconf_dad_failure
(
ifp
)
;
unsigned
char
*
sadr
=
skb
->
mac
.
raw
;
if
(((
sadr
[
8
]
^
dev
->
dev_addr
[
0
])
&
0x7f
)
==
0
&&
sadr
[
9
]
==
dev
->
dev_addr
[
1
]
&&
sadr
[
10
]
==
dev
->
dev_addr
[
2
]
&&
sadr
[
11
]
==
dev
->
dev_addr
[
3
]
&&
sadr
[
12
]
==
dev
->
dev_addr
[
4
]
&&
sadr
[
13
]
==
dev
->
dev_addr
[
5
])
{
/* looped-back to us */
in6_ifa_put
(
ifp
);
return
;
}
}
else
{
addrconf_dad_failure
(
ifp
);
}
}
else
in6_ifa_put
(
ifp
);
addrconf_dad_failure
(
ifp
);
return
;
}
...
...
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