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
e84c4407
Commit
e84c4407
authored
Jan 02, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send IPv4 updates.
parent
3d94850c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
message.c
message.c
+13
-2
No files found.
message.c
View file @
e84c4407
...
...
@@ -546,12 +546,23 @@ really_send_update(struct network *net,
{
if
(
!
export_filter
(
address
,
prefix
,
plen
))
{
if
(
plen
>=
96
&&
v4mapped
(
prefix
))
{
;
const
unsigned
char
*
sid
;
unsigned
char
v4route
[
16
];
if
(
!
myipv4
)
return
;
memset
(
v4route
,
0
,
8
);
memcpy
(
v4route
+
8
,
myipv4
+
12
,
4
);
memcpy
(
v4route
+
12
,
prefix
+
12
,
4
);
start_message
(
net
,
48
);
sid
=
message_source_id
(
net
);
if
(
sid
==
NULL
||
memcmp
(
address
,
sid
,
16
)
!=
0
)
send_message
(
net
,
3
,
0xFF
,
0
,
0
,
0xFFFF
,
address
);
send_message
(
net
,
5
,
plen
-
96
,
0
,
seqno
,
metric
,
v4route
);
}
else
{
if
(
in_prefix
(
address
,
prefix
,
plen
))
{
send_message
(
net
,
3
,
plen
,
0
,
seqno
,
metric
,
address
);
}
else
{
unsigned
const
char
*
sid
;
const
unsigned
char
*
sid
;
start_message
(
net
,
48
);
sid
=
message_source_id
(
net
);
if
(
sid
==
NULL
||
memcmp
(
address
,
sid
,
16
)
!=
0
)
...
...
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