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
b9056d3d
Commit
b9056d3d
authored
Mar 16, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement flush_source.
parent
e126bd1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
source.c
source.c
+10
-0
source.h
source.h
+1
-0
No files found.
source.c
View file @
b9056d3d
...
@@ -81,6 +81,16 @@ find_source(const unsigned char *a, const unsigned char *p, unsigned char plen,
...
@@ -81,6 +81,16 @@ find_source(const unsigned char *a, const unsigned char *p, unsigned char plen,
return
src
;
return
src
;
}
}
/* It is the caller's responsibility to check that no routes point at
this source. */
void
flush_source
(
struct
source
*
src
)
{
memset
(
src
,
0
,
sizeof
(
*
src
));
VALGRIND_MAKE_MEM_UNDEFINED
(
src
,
sizeof
(
*
src
));
src
->
valid
=
0
;
}
struct
source
*
struct
source
*
find_recent_source
(
const
unsigned
char
*
p
,
unsigned
char
plen
)
find_recent_source
(
const
unsigned
char
*
p
,
unsigned
char
plen
)
{
{
...
...
source.h
View file @
b9056d3d
...
@@ -38,6 +38,7 @@ struct source *find_source(const unsigned char *a,
...
@@ -38,6 +38,7 @@ struct source *find_source(const unsigned char *a,
const
unsigned
char
*
p
,
const
unsigned
char
*
p
,
unsigned
char
plen
,
unsigned
char
plen
,
int
create
,
unsigned
short
seqno
);
int
create
,
unsigned
short
seqno
);
void
flush_source
(
struct
source
*
src
);
struct
source
*
find_recent_source
(
const
unsigned
char
*
p
,
struct
source
*
find_recent_source
(
const
unsigned
char
*
p
,
unsigned
char
plen
);
unsigned
char
plen
);
void
update_source
(
struct
source
*
src
,
void
update_source
(
struct
source
*
src
,
...
...
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