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
cca6ad32
Commit
cca6ad32
authored
Nov 27, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add v4tov6.
parent
21148a84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
util.c
util.c
+7
-0
util.h
util.h
+1
-0
No files found.
util.c
View file @
cca6ad32
...
...
@@ -284,3 +284,10 @@ v4mapped(const unsigned char *address)
{
return
in_prefix
(
address
,
v4prefix
,
96
);
}
void
v4tov6
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
)
{
memcpy
(
dst
,
v4prefix
,
12
);
memcpy
(
dst
+
12
,
src
,
4
);
}
util.h
View file @
cca6ad32
...
...
@@ -50,6 +50,7 @@ int parse_net(const char *net, unsigned char *prefix_r, unsigned char *plen_r);
int
wait_for_fd
(
int
direction
,
int
fd
,
int
msecs
);
int
martian_prefix
(
const
unsigned
char
*
prefix
,
int
plen
);
int
v4mapped
(
const
unsigned
char
*
address
);
void
v4tov6
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
);
/* If debugging is disabled, we want to avoid calling format_address
for every omitted debugging message. So debug is a macro. But
...
...
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