Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
a3062085
Commit
a3062085
authored
Jan 13, 2010
by
Ondřej Zajíček
Browse files
Comment update.
parent
974363c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
proto/ospf/iface.c
View file @
a3062085
...
...
@@ -69,11 +69,14 @@ ospf_open_socket(struct ospf_iface *ifa, int mc)
ipsk
->
dport
=
OSPF_PROTO
;
#ifdef OSPFv2
/* FIXME - why there is IPA_NONE on multicast sockets ? */
if
(
mc
)
ipsk
->
saddr
=
IPA_NONE
;
else
ipsk
->
saddr
=
ifa
->
iface
->
addr
->
ip
;
/*
* In Linux IPv4, binding a raw socket to an IP address of an iface causes
* that the socket does not receive multicast packets, as they have
* different (multicast) destination IP address.
*
* We want such filter in the vlink (non-mc) socket.
*/
ipsk
->
saddr
=
mc
?
IPA_NONE
:
ifa
->
iface
->
addr
->
ip
;
#else
/* OSPFv3 */
ipsk
->
saddr
=
ifa
->
lladdr
;
#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