Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libloc
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
libloc
Commits
dd599427
Commit
dd599427
authored
Mar 07, 2022
by
Michael Tremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addresses: Use loc_address_family which is now available
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
d698ca09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/libloc/address.h
src/libloc/address.h
+2
-3
No files found.
src/libloc/address.h
View file @
dd599427
...
...
@@ -200,9 +200,8 @@ static inline int __loc_address4_sub(struct in6_addr* result,
static
inline
int
loc_address_sub
(
struct
in6_addr
*
result
,
const
struct
in6_addr
*
address1
,
const
struct
in6_addr
*
address2
)
{
// XXX should be using loc_address_family
int
family1
=
IN6_IS_ADDR_V4MAPPED
(
address1
)
?
AF_INET
:
AF_INET6
;
int
family2
=
IN6_IS_ADDR_V4MAPPED
(
address2
)
?
AF_INET
:
AF_INET6
;
int
family1
=
loc_address_family
(
address1
);
int
family2
=
loc_address_family
(
address2
);
// Address family must match
if
(
family1
!=
family2
)
{
...
...
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