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
3337e1f5
Commit
3337e1f5
authored
Jun 19, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase max number of xroutes in single update.
parent
adca107f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
message.c
message.c
+2
-2
No files found.
message.c
View file @
3337e1f5
...
@@ -64,7 +64,7 @@ parse_packet(const unsigned char *from, struct network *net,
...
@@ -64,7 +64,7 @@ parse_packet(const unsigned char *from, struct network *net,
int
i
,
j
;
int
i
,
j
;
const
unsigned
char
*
message
;
const
unsigned
char
*
message
;
struct
neighbour
*
neigh
;
struct
neighbour
*
neigh
;
struct
xroute
pxroutes
[
2
0
];
struct
xroute
pxroutes
[
4
0
];
int
numpxroutes
=
0
;
int
numpxroutes
=
0
;
if
(
len
%
20
!=
4
||
packet
[
0
]
!=
42
)
{
if
(
len
%
20
!=
4
||
packet
[
0
]
!=
42
)
{
...
@@ -151,7 +151,7 @@ parse_packet(const unsigned char *from, struct network *net,
...
@@ -151,7 +151,7 @@ parse_packet(const unsigned char *from, struct network *net,
}
else
if
(
message
[
0
]
==
4
)
{
}
else
if
(
message
[
0
]
==
4
)
{
debugf
(
"Received xroute from %s.
\n
"
,
debugf
(
"Received xroute from %s.
\n
"
,
format_address
(
from
));
format_address
(
from
));
if
(
numpxroutes
>=
2
0
)
{
if
(
numpxroutes
>=
4
0
)
{
fprintf
(
stderr
,
"Too many xroutes in update.
\n
"
);
fprintf
(
stderr
,
"Too many xroutes in update.
\n
"
);
continue
;
continue
;
}
}
...
...
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