Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
afa9f66c
Commit
afa9f66c
authored
Mar 10, 2010
by
Ondřej Zajíček
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds support for PTP links on BSD.
parent
53434e44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
sysdep/bsd/krt-sock.c
sysdep/bsd/krt-sock.c
+8
-3
No files found.
sysdep/bsd/krt-sock.c
View file @
afa9f66c
...
...
@@ -508,9 +508,6 @@ krt_read_addr(struct ks_msg *msg)
memcpy
(
&
ifa
.
brd
,
&
ibrd
,
sizeof
(
ip_addr
));
scope
=
ipa_classify
(
ifa
.
ip
);
ifa
.
prefix
=
ipa_and
(
ifa
.
ip
,
ipa_mkmask
(
masklen
));
if
(
scope
<
0
)
{
log
(
L_ERR
"KIF: Invalid interface address %I for %s"
,
ifa
.
ip
,
iface
->
name
);
...
...
@@ -518,6 +515,14 @@ krt_read_addr(struct ks_msg *msg)
}
ifa
.
scope
=
scope
&
IADDR_SCOPE_MASK
;
if
(
iface
->
flags
&
IF_MULTIACCESS
)
ifa
.
prefix
=
ipa_and
(
ifa
.
ip
,
ipa_mkmask
(
masklen
));
else
/* PtP iface */
{
ifa
.
flags
|=
IA_UNNUMBERED
;
ifa
.
prefix
=
ifa
.
opposite
=
ifa
.
brd
;
}
if
(
new
)
ifa_update
(
&
ifa
);
else
...
...
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