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
304ac2e8
Commit
304ac2e8
authored
Apr 12, 2015
by
Ondřej Zajíček
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes
parent
d924d5a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
proto/ospf/ospf.h
proto/ospf/ospf.h
+2
-0
sysdep/bsd/krt-sock.c
sysdep/bsd/krt-sock.c
+4
-4
No files found.
proto/ospf/ospf.h
View file @
304ac2e8
...
...
@@ -916,9 +916,11 @@ static inline void ospf_send_to_des(struct ospf_iface *ifa)
ospf_send_to_bdr
(
ifa
);
}
#ifndef PARSER
#define DROP(DSC,VAL) do { err_dsc = DSC; err_val = VAL; goto drop; } while(0)
#define DROP1(DSC) do { err_dsc = DSC; goto drop; } while(0)
#define SKIP(DSC) do { err_dsc = DSC; goto skip; } while(0)
#endif
static
inline
uint
ospf_pkt_hdrlen
(
struct
ospf_proto
*
p
)
{
return
ospf_is_v2
(
p
)
?
(
sizeof
(
struct
ospf_packet
)
+
sizeof
(
union
ospf_auth
))
:
sizeof
(
struct
ospf_packet
);
}
...
...
sysdep/bsd/krt-sock.c
View file @
304ac2e8
...
...
@@ -247,7 +247,7 @@ krt_send_route(struct krt_proto *p, int cmd, rte *e)
#ifdef IPV6
/* Embed interface ID to link-local address */
if
(
ipa_
ha
s_link_
scope
(
gw
))
if
(
ipa_
i
s_link_
local
(
gw
))
_I0
(
gw
)
=
0xfe800000
|
(
i
->
index
&
0x0000ffff
);
#endif
...
...
@@ -468,7 +468,7 @@ krt_read_route(struct ks_msg *msg, struct krt_proto *p, int scan)
#ifdef IPV6
/* Clean up embedded interface ID returned in link-local address */
if
(
ipa_
ha
s_link_
scope
(
a
.
gw
))
if
(
ipa_
i
s_link_
local
(
a
.
gw
))
_I0
(
a
.
gw
)
=
0xfe800000
;
#endif
...
...
@@ -662,10 +662,10 @@ krt_read_addr(struct ks_msg *msg, int scan)
#ifdef IPV6
/* Clean up embedded interface ID returned in link-local address */
if
(
ipa_
ha
s_link_
scope
(
iaddr
))
if
(
ipa_
i
s_link_
local
(
iaddr
))
_I0
(
iaddr
)
=
0xfe800000
;
if
(
ipa_
ha
s_link_
scope
(
ibrd
))
if
(
ipa_
i
s_link_
local
(
ibrd
))
_I0
(
ibrd
)
=
0xfe800000
;
#endif
...
...
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