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
a895254c
Commit
a895254c
authored
Mar 23, 2003
by
Hideaki Yoshifuji
Committed by
David S. Miller
Mar 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Use RFC2553 constant variable.
parent
5123f71c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+1
-5
No files found.
net/ipv6/addrconf.c
View file @
a895254c
...
@@ -1646,7 +1646,6 @@ static void sit_add_v4_addrs(struct inet6_dev *idev)
...
@@ -1646,7 +1646,6 @@ static void sit_add_v4_addrs(struct inet6_dev *idev)
static
void
init_loopback
(
struct
net_device
*
dev
)
static
void
init_loopback
(
struct
net_device
*
dev
)
{
{
struct
in6_addr
addr
;
struct
inet6_dev
*
idev
;
struct
inet6_dev
*
idev
;
struct
inet6_ifaddr
*
ifp
;
struct
inet6_ifaddr
*
ifp
;
...
@@ -1654,15 +1653,12 @@ static void init_loopback(struct net_device *dev)
...
@@ -1654,15 +1653,12 @@ static void init_loopback(struct net_device *dev)
ASSERT_RTNL
();
ASSERT_RTNL
();
memset
(
&
addr
,
0
,
sizeof
(
struct
in6_addr
));
addr
.
s6_addr
[
15
]
=
1
;
if
((
idev
=
ipv6_find_idev
(
dev
))
==
NULL
)
{
if
((
idev
=
ipv6_find_idev
(
dev
))
==
NULL
)
{
printk
(
KERN_DEBUG
"init loopback: add_dev failed
\n
"
);
printk
(
KERN_DEBUG
"init loopback: add_dev failed
\n
"
);
return
;
return
;
}
}
ifp
=
ipv6_add_addr
(
idev
,
&
addr
,
128
,
IFA_HOST
,
IFA_F_PERMANENT
);
ifp
=
ipv6_add_addr
(
idev
,
&
in6addr_loopback
,
128
,
IFA_HOST
,
IFA_F_PERMANENT
);
if
(
ifp
)
{
if
(
ifp
)
{
spin_lock_bh
(
&
ifp
->
lock
);
spin_lock_bh
(
&
ifp
->
lock
);
ifp
->
flags
&=
~
IFA_F_TENTATIVE
;
ifp
->
flags
&=
~
IFA_F_TENTATIVE
;
...
...
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