This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
822
Wiki
Activity
Browse Source
MT#55283 shutdown: close/delete kernel interface
Change-Id: Ie638cd2d33a7f0c5d570048a28444cd0333f5a45
pull/1747/head
Richard Fuchs
2 years ago
parent
6c7277a84f
commit
494ac006c3
3 changed files
with
10 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
daemon/kernel.c
+1
-0
daemon/main.c
+1
-0
include/kernel.h
+ 8
- 0
daemon/kernel.c
View File
@ -139,6 +139,14 @@ int kernel_setup_table(unsigned int id) {
return
0
;
}
void
kernel_shutdown_table
(
void
)
{
if
(
!
kernel
.
is_open
)
return
;
/
/
ignore
errors
close
(
kernel
.
fd
)
;
kernel_delete_table
(
kernel
.
table
)
;
}
int
kernel_add_stream
(
struct
rtpengine_target_info
*
mti
)
{
struct
rtpengine_command_add_target
cmd
;
+ 1
- 0
daemon/main.c
View File
@ -1456,6 +1456,7 @@ int main(int argc, char **argv) {
#
ifndef WITHOUT_NFTABLES
nftables_shutdown
(
rtpe_config
.
nftables_chain
,
rtpe_config
.
nftables_base_chain
)
;
#
endif
kernel_shutdown_table
(
)
;
return
0
;
}
+ 1
- 0
include/kernel.h
View File
@ -35,6 +35,7 @@ extern struct kernel_interface kernel;
int
kernel_setup_table
(
unsigned
int
)
;
void
kernel_shutdown_table
(
void
)
;
int
kernel_add_stream
(
struct
rtpengine_target_info
*
)
;
int
kernel_add_destination
(
struct
rtpengine_destination_info
*
)
;
Write
Preview
Loading…
Cancel
Save