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
c2ee19da
Commit
c2ee19da
authored
Jan 02, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement myipv4.
parent
de27eabf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
babel.c
babel.c
+8
-0
babel.h
babel.h
+1
-0
No files found.
babel.c
View file @
c2ee19da
...
...
@@ -52,6 +52,7 @@ THE SOFTWARE.
struct
timeval
now
;
unsigned
char
myid
[
16
];
unsigned
char
*
myipv4
=
NULL
;
int
debug
=
0
;
static
int
maxmtu
;
...
...
@@ -191,6 +192,13 @@ main(int argc, char **argv)
}
else
if
(
strcmp
(
*
arg
,
"-d"
)
==
0
)
{
SHIFTE
();
debug
=
atoi
(
*
arg
);
}
else
if
(
strcmp
(
*
arg
,
"-4"
)
==
0
)
{
SHIFTE
();
myipv4
=
malloc
(
16
);
if
(
myipv4
==
NULL
)
goto
syntax
;
rc
=
parse_address
(
*
arg
,
myipv4
);
if
(
rc
<
0
)
goto
syntax
;
if
(
!
v4mapped
(
myipv4
))
goto
syntax
;
}
else
{
goto
syntax
;
}
...
...
babel.h
View file @
c2ee19da
...
...
@@ -87,6 +87,7 @@ extern int debug;
extern
int
reboot_time
;
extern
unsigned
char
myid
[
16
];
extern
unsigned
char
*
myipv4
;
extern
struct
network
nets
[
MAXNETS
];
extern
int
numnets
;
...
...
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