Revision 9a158361 sysdep/linux/netlink/netlink.c
sysdep/linux/netlink/netlink.c | ||
---|---|---|
407 | 407 |
* Routes |
408 | 408 |
*/ |
409 | 409 |
|
410 |
int /* FIXME: Check use of this function in krt.c */
|
|
410 |
int |
|
411 | 411 |
krt_capable(rte *e) |
412 | 412 |
{ |
413 | 413 |
rta *a = e->attrs; |
414 | 414 |
|
415 |
if (a->cast != RTC_UNICAST) /* FIXME: For IPv6, we might support anycasts as well */ |
|
415 |
if (a->cast != RTC_UNICAST |
|
416 |
#ifdef IPV6 |
|
417 |
&& a->cast != RTC_ANYCAST |
|
418 |
#endif |
|
419 |
) |
|
416 | 420 |
return 0; |
417 | 421 |
if (a->source == RTS_DEVICE) /* Kernel takes care of device routes itself */ |
418 | 422 |
return 0; |
... | ... | |
597 | 601 |
net = net_get(&master_table, dst, i->rtm_dst_len); |
598 | 602 |
ra.proto = &p->p; |
599 | 603 |
ra.source = RTS_INHERIT; |
600 |
ra.scope = SCOPE_UNIVERSE; /* FIXME: Use kernel scope? */
|
|
604 |
ra.scope = SCOPE_UNIVERSE; |
|
601 | 605 |
ra.cast = RTC_UNICAST; |
602 | 606 |
ra.flags = ra.aflags = 0; |
603 | 607 |
ra.from = IPA_NONE; |
Also available in: Unified diff