Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pim_dm
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
pim_dm
Commits
54791bd5
Commit
54791bd5
authored
Oct 27, 2022
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: clean mrule entries on interface removal
parent
9cb1b14c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
pimdm/Kernel.py
pimdm/Kernel.py
+4
-1
No files found.
pimdm/Kernel.py
View file @
54791bd5
...
...
@@ -387,6 +387,8 @@ class Kernel4(Kernel):
struct_vifctl
=
struct
.
pack
(
"HBBI 4s 4s"
,
index
,
0
,
0
,
0
,
socket
.
inet_aton
(
"0.0.0.0"
),
socket
.
inet_aton
(
"0.0.0.0"
))
self
.
delete_mrule
(
interface_name
,
0
)
if
pim_globals
.
MULTICAST_TABLE_ID
!=
0
:
self
.
delete_mrule
(
interface_name
,
pim_globals
.
MULTICAST_TABLE_ID
)
self
.
socket
.
setsockopt
(
socket
.
IPPROTO_IP
,
self
.
MRT_DEL_VIF
,
struct_vifctl
)
self
.
stop_forwarding
(
index
)
...
...
@@ -621,7 +623,8 @@ class Kernel6(Kernel):
struct_vifctl
=
struct
.
pack
(
"HBBHI"
,
mif_index
,
0
,
0
,
physical_if_index
,
0
)
self
.
socket
.
setsockopt
(
socket
.
IPPROTO_IPV6
,
self
.
MRT6_DEL_MIF
,
struct_vifctl
)
self
.
delete_mrule
(
interface_name
,
0
)
if
pim_globals
.
MULTICAST_TABLE_ID
!=
0
:
self
.
delete_mrule
(
interface_name
,
pim_globals
.
MULTICAST_TABLE_ID
,
AF_INET6
)
self
.
stop_forwarding
(
mif_index
)
...
...
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