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
78c852a0
Commit
78c852a0
authored
Oct 09, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add EUI-64 parsing to filter code.
parent
622ca3d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
filter.c
filter.c
+27
-0
No files found.
filter.c
View file @
78c852a0
...
@@ -121,6 +121,33 @@ getip(int c, unsigned char **ip_r, int *af_r, gnc_t gnc, void *closure)
...
@@ -121,6 +121,33 @@ getip(int c, unsigned char **ip_r, int *af_r, gnc_t gnc, void *closure)
return
c
;
return
c
;
}
}
static
int
getid
(
int
c
,
unsigned
char
**
id_r
,
gnc_t
gnc
,
void
*
closure
)
{
char
*
t
;
unsigned
char
*
idp
;
unsigned
char
id
[
8
];
int
rc
;
c
=
getword
(
c
,
&
t
,
gnc
,
closure
);
if
(
c
<
-
1
)
return
c
;
rc
=
parse_eui64
(
t
,
id
);
if
(
rc
<
0
)
{
free
(
t
);
return
-
2
;
}
free
(
t
);
idp
=
malloc
(
8
);
if
(
idp
==
NULL
)
{
return
-
2
;
}
memcpy
(
idp
,
id
,
8
);
*
id_r
=
idp
;
return
c
;
}
static
int
static
int
getnet
(
int
c
,
unsigned
char
**
p_r
,
unsigned
char
*
plen_r
,
int
*
af_r
,
getnet
(
int
c
,
unsigned
char
**
p_r
,
unsigned
char
*
plen_r
,
int
*
af_r
,
gnc_t
gnc
,
void
*
closure
)
gnc_t
gnc
,
void
*
closure
)
...
...
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