dect
/
libnl
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
libnl/lib
Justin Mayfield b62e019afa single nexthop flags bug
I ran into a bug today related to how Linux handles a route's nexthop
flags when there is just one nexthop.  Namely Linux expects the flags
to be OR'd into the rtm_flags field when there is only one nexthop and
so rtnl_route_build_msg needs to check the number of nexthops and
store the nexthops flags into this field prior to calling
nlmsg_append(...&rtmsg).

Conversely the rtnl_route_parse function needs to pull these lower
0xff bits when a single nexthop is detected.

Attached is my patch.  I don't like the slight duplication of doing
the rtnl_route_get_nnexthops check twice but it seemed to be the least
turmoil of any solution I thought of.
2012-08-29 12:27:06 +02:00
..
cli Support plug qdisc - queue traffic until explicit release 2012-02-14 12:02:04 +01:00
fib_lookup doc: documentation restructuring 2012-05-10 12:03:59 +02:00
genl Fix types-related warnings based on clang diagnostics 2012-06-13 13:30:26 +02:00
netfilter ct_dump_stats: detect when stats are not available 2012-08-28 18:53:33 +06:00
route single nexthop flags bug 2012-08-29 12:27:06 +02:00
.gitignore Build separate libraries for each netilnk family 2008-05-15 18:01:50 +02:00
Makefile.am Support plug qdisc - queue traffic until explicit release 2012-02-14 12:02:04 +01:00
addr.c nl_addr_parse handling of 'default', 'any', and 'all' 2012-08-29 12:17:24 +02:00
attr.c Fix types-related warnings based on clang diagnostics 2012-06-13 13:30:26 +02:00
cache.c Fix for dumping objects to a buffer instead of file descriptor 2012-05-18 15:03:46 +02:00
cache_mngr.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
cache_mngt.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
data.c Fix types-related warnings based on clang diagnostics 2012-06-13 13:30:26 +02:00
error.c Support for NLM_F_INTR 2011-07-14 10:51:49 +02:00
handlers.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
msg.c Fix types-related warnings based on clang diagnostics 2012-06-13 13:30:26 +02:00
nl.c Fix types-related warnings based on clang diagnostics 2012-06-13 13:30:26 +02:00
object.c Fix types-related warnings based on clang diagnostics 2012-06-13 13:30:26 +02:00
socket.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
utils.c Fix build warning after const char ** convert 2012-08-29 12:05:51 +02:00