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
c81fcd6c
Commit
c81fcd6c
authored
Mar 16, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change random data to be time_t instead of int.
parent
a4475cc2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
babel.c
babel.c
+2
-2
babel.h
babel.h
+1
-1
network.h
network.h
+2
-2
route.h
route.h
+2
-2
source.h
source.h
+1
-1
util.c
util.c
+1
-1
util.h
util.h
+1
-1
No files found.
babel.c
View file @
c81fcd6c
...
...
@@ -56,7 +56,7 @@ struct timeval now;
unsigned
char
myid
[
16
];
int
debug
=
0
;
in
t
reboot_time
;
time_
t
reboot_time
;
int
idle_time
=
320
;
int
link_detect
=
0
;
...
...
@@ -99,7 +99,7 @@ main(int argc, char **argv)
struct
sockaddr_in6
sin6
;
int
i
,
rc
,
fd
,
rfd
,
have_id
=
0
;
struct
timeval
check_neighbours_time
;
in
t
expiry_time
,
kernel_dump_time
;
time_
t
expiry_time
,
kernel_dump_time
;
char
*
config_file
=
NULL
;
void
*
vrc
;
unsigned
int
seed
;
...
...
babel.h
View file @
c81fcd6c
...
...
@@ -64,7 +64,7 @@ THE SOFTWARE.
extern
struct
timeval
now
;
extern
int
debug
;
extern
in
t
reboot_time
;
extern
time_
t
reboot_time
;
extern
int
wireless_hello_interval
,
wired_hello_interval
,
idle_hello_interval
;
extern
int
idle_time
;
extern
int
link_detect
;
...
...
network.h
View file @
c81fcd6c
...
...
@@ -39,9 +39,9 @@ struct network {
struct
timeval
flush_timeout
;
int
bufsize
;
unsigned
char
*
sendbuf
;
in
t
bucket_time
;
time_
t
bucket_time
;
unsigned
int
bucket
;
in
t
activity_time
;
time_
t
activity_time
;
unsigned
short
hello_seqno
;
unsigned
int
hello_interval
;
unsigned
int
self_update_interval
;
...
...
route.h
View file @
c81fcd6c
...
...
@@ -27,8 +27,8 @@ struct route {
unsigned
short
seqno
;
struct
neighbour
*
neigh
;
unsigned
char
nexthop
[
16
];
in
t
time
;
in
t
origtime
;
time_
t
time
;
time_
t
origtime
;
int
installed
;
};
...
...
source.h
View file @
c81fcd6c
...
...
@@ -28,7 +28,7 @@ struct source {
unsigned
char
plen
;
unsigned
short
seqno
;
unsigned
short
metric
;
in
t
time
;
time_
t
time
;
};
int
source_match
(
struct
source
*
src
,
...
...
util.c
View file @
c81fcd6c
...
...
@@ -125,7 +125,7 @@ timeval_min(struct timeval *d, const struct timeval *s)
}
void
timeval_min_sec
(
struct
timeval
*
d
,
in
t
secs
)
timeval_min_sec
(
struct
timeval
*
d
,
time_
t
secs
)
{
if
(
d
->
tv_sec
==
0
||
d
->
tv_sec
>
secs
)
{
d
->
tv_sec
=
secs
;
...
...
util.h
View file @
c81fcd6c
...
...
@@ -35,7 +35,7 @@ void timeval_plus_msec(struct timeval *d,
int
timeval_compare
(
const
struct
timeval
*
s1
,
const
struct
timeval
*
s2
)
ATTRIBUTE
((
pure
));
void
timeval_min
(
struct
timeval
*
d
,
const
struct
timeval
*
s
);
void
timeval_min_sec
(
struct
timeval
*
d
,
in
t
secs
);
void
timeval_min_sec
(
struct
timeval
*
d
,
time_
t
secs
);
int
parse_msec
(
const
char
*
string
);
void
do_debugf
(
int
leve
,
const
char
*
format
,
...)
ATTRIBUTE
((
format
(
printf
,
2
,
3
)));
...
...
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