Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
0e7b8dcd
Commit
0e7b8dcd
authored
17 years ago
by
YOSHIFUJI Hideaki
Browse files
Options
Downloads
Patches
Plain Diff
[IPV6]: Use htonl() instead of __constant_htonl() where appricable.
Signed-off-by:
YOSHIFUJI Hideaki
<
yoshfuji@linux-ipv6.org
>
parent
5ee09105
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/net/addrconf.h
+6
-10
6 additions, 10 deletions
include/net/addrconf.h
with
6 additions
and
10 deletions
include/net/addrconf.h
+
6
−
10
View file @
0e7b8dcd
...
@@ -214,29 +214,25 @@ static inline void addrconf_addr_solict_mult(const struct in6_addr *addr,
...
@@ -214,29 +214,25 @@ static inline void addrconf_addr_solict_mult(const struct in6_addr *addr,
struct
in6_addr
*
solicited
)
struct
in6_addr
*
solicited
)
{
{
ipv6_addr_set
(
solicited
,
ipv6_addr_set
(
solicited
,
__constant_
htonl
(
0xFF020000
),
0
,
htonl
(
0xFF020000
),
0
,
__constant_
htonl
(
0x1
),
htonl
(
0x1
),
__constant_
htonl
(
0xFF000000
)
|
addr
->
s6_addr32
[
3
]);
htonl
(
0xFF000000
)
|
addr
->
s6_addr32
[
3
]);
}
}
static
inline
void
ipv6_addr_all_nodes
(
struct
in6_addr
*
addr
)
static
inline
void
ipv6_addr_all_nodes
(
struct
in6_addr
*
addr
)
{
{
ipv6_addr_set
(
addr
,
ipv6_addr_set
(
addr
,
htonl
(
0xFF020000
),
0
,
0
,
htonl
(
0x1
));
__constant_htonl
(
0xFF020000
),
0
,
0
,
__constant_htonl
(
0x1
));
}
}
static
inline
void
ipv6_addr_all_routers
(
struct
in6_addr
*
addr
)
static
inline
void
ipv6_addr_all_routers
(
struct
in6_addr
*
addr
)
{
{
ipv6_addr_set
(
addr
,
ipv6_addr_set
(
addr
,
htonl
(
0xFF020000
),
0
,
0
,
htonl
(
0x2
));
__constant_htonl
(
0xFF020000
),
0
,
0
,
__constant_htonl
(
0x2
));
}
}
static
inline
int
ipv6_addr_is_multicast
(
const
struct
in6_addr
*
addr
)
static
inline
int
ipv6_addr_is_multicast
(
const
struct
in6_addr
*
addr
)
{
{
return
(
addr
->
s6_addr32
[
0
]
&
__constant_
htonl
(
0xFF000000
))
==
__constant_
htonl
(
0xFF000000
);
return
(
addr
->
s6_addr32
[
0
]
&
htonl
(
0xFF000000
))
==
htonl
(
0xFF000000
);
}
}
static
inline
int
ipv6_addr_is_ll_all_nodes
(
const
struct
in6_addr
*
addr
)
static
inline
int
ipv6_addr_is_ll_all_nodes
(
const
struct
in6_addr
*
addr
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment