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
ed4001a1
Commit
ed4001a1
authored
Jun 27, 2014
by
Matthieu Boutier
Committed by
Juliusz Chroboczek
Jun 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make code fits in 80 columns.
parent
b9605676
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
kernel_netlink.c
kernel_netlink.c
+2
-1
kernel_socket.c
kernel_socket.c
+2
-2
route.h
route.h
+3
-2
No files found.
kernel_netlink.c
View file @
ed4001a1
...
@@ -1294,7 +1294,8 @@ parse_addr_rta(struct ifaddrmsg *addr, int len, struct in6_addr *res)
...
@@ -1294,7 +1294,8 @@ parse_addr_rta(struct ifaddrmsg *addr, int len, struct in6_addr *res)
memcpy
(
res
->
s6_addr
,
RTA_DATA
(
rta
),
16
);
memcpy
(
res
->
s6_addr
,
RTA_DATA
(
rta
),
16
);
break
;
break
;
default:
default:
kdebugf
(
"ifaddr: unexpected address family %d
\n
"
,
addr
->
ifa_family
);
kdebugf
(
"ifaddr: unexpected address family %d
\n
"
,
addr
->
ifa_family
);
return
-
1
;
return
-
1
;
break
;
break
;
}
}
...
...
kernel_socket.c
View file @
ed4001a1
...
@@ -785,8 +785,8 @@ kernel_addresses(char *ifname, int ifindex, int ll,
...
@@ -785,8 +785,8 @@ kernel_addresses(char *ifname, int ifindex, int ll,
memcpy
(
routes
[
i
].
prefix
,
&
sin6
->
sin6_addr
,
16
);
memcpy
(
routes
[
i
].
prefix
,
&
sin6
->
sin6_addr
,
16
);
if
(
ll
)
if
(
ll
)
/* This a perfect example of counter-productive optimisation :
/* This a perfect example of counter-productive optimisation :
KAME encodes interface index onto bytes 2 and 3, so we have
to
KAME encodes interface index onto bytes 2 and 3, so we have
reset those bytes to 0 before passing them to babeld. */
to
reset those bytes to 0 before passing them to babeld. */
memset
(
routes
[
i
].
prefix
+
2
,
0
,
2
);
memset
(
routes
[
i
].
prefix
+
2
,
0
,
2
);
routes
[
i
].
plen
=
128
;
routes
[
i
].
plen
=
128
;
routes
[
i
].
metric
=
0
;
routes
[
i
].
metric
=
0
;
...
...
route.h
View file @
ed4001a1
...
@@ -91,7 +91,8 @@ int update_feasible(struct source *src,
...
@@ -91,7 +91,8 @@ int update_feasible(struct source *src,
unsigned
short
seqno
,
unsigned
short
refmetric
);
unsigned
short
seqno
,
unsigned
short
refmetric
);
void
change_smoothing_half_life
(
int
half_life
);
void
change_smoothing_half_life
(
int
half_life
);
int
route_smoothed_metric
(
struct
babel_route
*
route
);
int
route_smoothed_metric
(
struct
babel_route
*
route
);
struct
babel_route
*
find_best_route
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
struct
babel_route
*
find_best_route
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
int
feasible
,
struct
neighbour
*
exclude
);
int
feasible
,
struct
neighbour
*
exclude
);
struct
babel_route
*
install_best_route
(
const
unsigned
char
prefix
[
16
],
struct
babel_route
*
install_best_route
(
const
unsigned
char
prefix
[
16
],
unsigned
char
plen
);
unsigned
char
plen
);
...
...
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