Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ext-respondd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infrastruktur
ext-respondd
Commits
51f1aed9
Unverified
Commit
51f1aed9
authored
Aug 2, 2019
by
Annika Wickert
Committed by
GitHub
Aug 2, 2019
Browse files
Options
Downloads
Plain Diff
Merge pull request #1 from awlx/bind_to_interface
Bind to interface
parents
bedd124b
357a402d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ext-respondd.py
+1
-1
1 addition, 1 deletion
ext-respondd.py
lib/respondd_client.py
+1
-0
1 addition, 0 deletions
lib/respondd_client.py
respondd@.service
+13
-0
13 additions, 0 deletions
respondd@.service
with
15 additions
and
1 deletion
ext-respondd.py
+
1
−
1
View file @
51f1aed9
...
...
@@ -20,7 +20,7 @@ config = {
'
bridge
'
:
'
br-client
'
,
'
batman
'
:
'
bat0
'
,
'
port
'
:
1001
,
'
addr
'
:
'
ff0
2
::2:1001
'
,
'
addr
'
:
'
ff0
5
::2:1001
'
,
'
caching
'
:
5
,
'
rate_limit
'
:
30
,
'
rate_limit_burst
'
:
10
...
...
This diff is collapsed.
Click to expand it.
lib/respondd_client.py
+
1
−
0
View file @
51f1aed9
...
...
@@ -39,6 +39,7 @@ class ResponddClient:
sock
.
setsockopt
(
socket
.
IPPROTO_IPV6
,
socket
.
IPV6_JOIN_GROUP
,
group
+
struct
.
pack
(
'
I
'
,
if_idx
))
def
start
(
self
):
self
.
_sock
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_BINDTODEVICE
,
bytes
(
self
.
_config
[
'
bridge
'
].
encode
()))
self
.
_sock
.
bind
((
'
::
'
,
self
.
_config
[
'
port
'
]))
lines
=
lib
.
helper
.
call
([
'
batctl
'
,
'
-m
'
,
self
.
_config
[
'
batman
'
],
'
if
'
])
...
...
This diff is collapsed.
Click to expand it.
respondd@.service
0 → 100644
+
13
−
0
View file @
51f1aed9
[Unit]
Description
=
respondd (respondd status for servers)
After
=
syslog.target network-online.target
[Service]
Type
=
simple
User
=
root
Group
=
root
WorkingDirectory
=
/opt/respondd-%I
ExecStart
=
/opt/respondd-%I/ext-respondd.py
[Install]
WantedBy
=
multi-user.target
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment