GNOME Bugzilla – Bug 785449
[review] pt1 of fixing route caching in platform [th/platform-route-pt1-bgo785449]
Last modified: 2017-08-03 17:07:06 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1337855 for why. This is a first part, towards getting route caching right. More to come later. Please review.
"make check" fails: NetworkManager:ERROR:src/tests/test-route-manager.c:774:test_ip6: assertion failed (routes->len == G_N_ELEMENTS (state2)): (8 == 7) > platform: print lock paramters of route src/platform/nm-platform.c: In function ‘nm_platform_ip4_route_to_string’: src/platform/nm-platform.c:4212:30: error: logical ‘or’ of equal expressions [-Werror=logical-op] route->cwnd || route->cwnd ? nm_sprintf_buf (str_cwnd, " cwnd %s%"G_GUINT32_FORMAT, route->lock_cwnd ? "lock " : "", route->cwnd) : "", ^~ src/platform/nm-platform.c: In function ‘nm_platform_ip6_route_to_string’: src/platform/nm-platform.c:4281:30: error: logical ‘or’ of equal expressions [-Werror=logical-op] route->cwnd || route->cwnd ? nm_sprintf_buf (str_cwnd, " cwnd %s%"G_GUINT32_FORMAT, route->lock_cwnd ? "lock " : "", route->cwnd) : "", ^~
(In reply to Beniamino Galvani from comment #1) > "make check" fails: > > NetworkManager:ERROR:src/tests/test-route-manager.c:774:test_ip6: assertion > failed (routes->len == G_N_ELEMENTS (state2)): (8 == 7) the last commit is not yet finished. Much more work missing there. All previous commits should be correct though. > > platform: print lock paramters of route > > src/platform/nm-platform.c: In function ‘nm_platform_ip4_route_to_string’: > src/platform/nm-platform.c:4212:30: error: logical ‘or’ of equal expressions > [-Werror=logical-op] > route->cwnd || route->cwnd ? nm_sprintf_buf > (str_cwnd, " cwnd %s%"G_GUINT32_FORMAT, route->lock_cwnd ? "lock > " : "", route->cwnd) : "", fixed and repushed.
merged to master: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=6da63230801cadd978d4a992e6825c5c2adc3324 this was only another, smaller preparation branch for the larger rework of route handling.