Control: tag -1 patch

The offending expression is

    route_obj_ops.oo_id_attrs

... but the route_obj_ops type is not defined in libnl-3's public header
files, so that doesn't work. If this has worked before, libnl-3's API
must have been restricted at some point.

Looking at libnl3 sources, it looks to me that nl_object_get_id_attrs()
does what is intended here, so here's a patch that fixes the build here.

I can't test whether this works.

Cheers,
-Hilko

diff --git a/modules/ntrack-libnl.c b/modules/ntrack-libnl.c
index dbae740..d9475f6 100644
--- a/modules/ntrack-libnl.c
+++ b/modules/ntrack-libnl.c
@@ -530,7 +530,7 @@ update_connectivity (ntrack_monitor_t *self, struct 
_nl_info *nl_info)
                op_default_route_disappeared ((struct _ntrack_monitor_arch*) 
self, nl_info);
        } else if (nl_info->topmost_route && topmost_route) {
                int diff_bits;
-               if ((diff_bits = (route_obj_ops.oo_id_attrs | ROUTE_ATTR_OIF
+               if ((diff_bits = (nl_object_get_id_attrs(&route_obj_ops) | 
ROUTE_ATTR_OIF
                                  | ROUTE_ATTR_GATEWAY) &
                                  nl_object_diff (OBJ_CAST 
(nl_info->topmost_route),
                                                  OBJ_CAST (topmost_route)))) {


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to