]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nsresource: fix varlink method dispatch table
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Oct 2025 01:25:11 +0000 (10:25 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 15 Oct 2025 08:16:06 +0000 (10:16 +0200)
Follow-up for 716bf93c4bde07c1870b9b0837f2ec33f36686f1 (v258).

src/shared/nsresource.c

index d199d437d5ff280c174729165e61ef6d4498e121..a5d1ee7034f1cd318afc6601b67629757fb39145 100644 (file)
@@ -400,8 +400,8 @@ int nsresource_add_netif_tap(
                 return log_debug_errno(sd_varlink_error_to_errno(error_id, reply), "Failed to add network to user namespace: %s", error_id);
 
         static const sd_json_dispatch_field dispatch_table[] = {
-                { "hostInterfaceName",       SD_JSON_VARIANT_STRING,        sd_json_dispatch_string, offsetof(InterfaceParams, host_interface_name),      SD_JSON_MANDATORY },
-                { "interfaceFileDescriptor", _SD_JSON_VARIANT_TYPE_INVALID, sd_json_dispatch_uint,   offsetof(InterfaceParams, namespace_interface_name), SD_JSON_MANDATORY },
+                { "hostInterfaceName",       SD_JSON_VARIANT_STRING,        sd_json_dispatch_string, offsetof(InterfaceParams, host_interface_name), SD_JSON_MANDATORY },
+                { "interfaceFileDescriptor", _SD_JSON_VARIANT_TYPE_INVALID, sd_json_dispatch_uint,   offsetof(InterfaceParams, interface_fd_index),  SD_JSON_MANDATORY },
         };
 
         _cleanup_(interface_params_done) InterfaceParams p = {};