Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
9bbcc9f8
Commit
9bbcc9f8
authored
Nov 02, 2015
by
Matthieu Boutier
Committed by
Juliusz Chroboczek
Nov 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make rule functions global.
parent
0b324400
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
3 deletions
+31
-3
kernel.h
kernel.h
+5
-0
kernel_netlink.c
kernel_netlink.c
+3
-3
kernel_socket.c
kernel_socket.c
+23
-0
No files found.
kernel.h
View file @
9bbcc9f8
...
...
@@ -97,3 +97,8 @@ int gettime(struct timeval *tv);
int
read_random_bytes
(
void
*
buf
,
int
len
);
int
kernel_older_than
(
const
char
*
sysname
,
int
version
,
int
sub_version
);
int
kernel_has_ipv6_subtrees
(
void
);
int
add_rule
(
int
prio
,
const
unsigned
char
*
src_prefix
,
int
src_plen
,
int
table
);
int
flush_rule
(
int
prio
,
int
family
);
int
change_rule
(
int
new_prio
,
int
old_prio
,
const
unsigned
char
*
src
,
int
plen
,
int
table
);
kernel_netlink.c
View file @
9bbcc9f8
...
...
@@ -1464,7 +1464,7 @@ kernel_callback(struct kernel_filter *filter)
/* Routing table's rules */
static
int
int
add_rule
(
int
prio
,
const
unsigned
char
*
src_prefix
,
int
src_plen
,
int
table
)
{
char
buffer
[
64
]
=
{
0
};
/* 56 needed */
...
...
@@ -1536,7 +1536,7 @@ add_rule(int prio, const unsigned char *src_prefix, int src_plen, int table)
return
netlink_talk
(
message_header
);
}
static
int
int
flush_rule
(
int
prio
,
int
family
)
{
char
buffer
[
64
]
=
{
0
};
/* 36 needed */
...
...
@@ -1589,7 +1589,7 @@ flush_rule(int prio, int family)
return
netlink_talk
(
message_header
);
}
static
int
int
change_rule
(
int
new_prio
,
int
old_prio
,
const
unsigned
char
*
src
,
int
plen
,
int
table
)
{
...
...
kernel_socket.c
View file @
9bbcc9f8
...
...
@@ -851,6 +851,29 @@ kernel_callback(struct kernel_filter *filter)
}
int
add_rule
(
int
prio
,
const
unsigned
char
*
src_prefix
,
int
src_plen
,
int
table
)
{
errno
=
ENOSYS
;
return
-
1
;
}
int
flush_rule
(
int
prio
,
int
family
)
{
errno
=
ENOSYS
;
return
-
1
;
}
int
change_rule
(
int
new_prio
,
int
old_prio
,
const
unsigned
char
*
src
,
int
plen
,
int
table
)
{
errno
=
ENOSYS
;
return
-
1
;
}
/* Local Variables: */
/* c-basic-offset: 4 */
/* indent-tabs-mode: nil */
...
...
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