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
1fcfe266
Commit
1fcfe266
authored
Sep 29, 2021
by
Michael Tremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: Drop useless loc_network_match_asn function
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
b2fcf7de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
6 deletions
+0
-6
src/libloc.sym
src/libloc.sym
+0
-1
src/libloc/network.h
src/libloc/network.h
+0
-1
src/network.c
src/network.c
+0
-4
No files found.
src/libloc.sym
View file @
1fcfe266
...
...
@@ -118,7 +118,6 @@ global:
loc_network_has_flag;
loc_network_is_subnet;
loc_network_match_address;
loc_network_match_asn;
loc_network_match_country_code;
loc_network_new;
loc_network_new_from_string;
...
...
src/libloc/network.h
View file @
1fcfe266
...
...
@@ -53,7 +53,6 @@ int loc_network_match_country_code(struct loc_network* network, const char* coun
uint32_t
loc_network_get_asn
(
struct
loc_network
*
network
);
int
loc_network_set_asn
(
struct
loc_network
*
network
,
uint32_t
asn
);
int
loc_network_match_asn
(
struct
loc_network
*
network
,
uint32_t
asn
);
int
loc_network_has_flag
(
struct
loc_network
*
network
,
uint32_t
flag
);
int
loc_network_set_flag
(
struct
loc_network
*
network
,
uint32_t
flag
);
...
...
src/network.c
View file @
1fcfe266
...
...
@@ -405,10 +405,6 @@ LOC_EXPORT int loc_network_set_asn(struct loc_network* network, uint32_t asn) {
return
0
;
}
LOC_EXPORT
int
loc_network_match_asn
(
struct
loc_network
*
network
,
uint32_t
asn
)
{
return
network
->
asn
==
asn
;
}
LOC_EXPORT
int
loc_network_has_flag
(
struct
loc_network
*
network
,
uint32_t
flag
)
{
return
network
->
flags
&
flag
;
}
...
...
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