Lines Matching refs:result
293 _cleanup_free_ DHCPMessage *result = NULL; in test_option_set() local
296 result = malloc0(sizeof(DHCPMessage) + 11); in test_option_set()
297 assert_se(result); in test_option_set()
299 result->options[0] = 'A'; in test_option_set()
300 result->options[1] = 'B'; in test_option_set()
301 result->options[2] = 'C'; in test_option_set()
302 result->options[3] = 'D'; in test_option_set()
304 assert_se(dhcp_option_append(result, 0, &offset, 0, SD_DHCP_OPTION_PAD, in test_option_set()
309 assert_se(dhcp_option_append(result, 5, &offset, 0, SD_DHCP_OPTION_PAD, in test_option_set()
312 assert_se(dhcp_option_append(result, 6, &offset, 0, SD_DHCP_OPTION_PAD, in test_option_set()
319 assert_se(dhcp_option_append(result, len, &offset, DHCP_OVERLOAD_SNAME, in test_option_set()
335 printf("%2u: 0x%02x(0x%02x) (options)\n", i, result->options[i], in test_option_set()
337 assert_se(result->options[i] == the_options[i]); in test_option_set()
341 printf("%2d: 0x%02x(0x%02x) (options)\n", 9, result->options[9], in test_option_set()
344 assert_se(result->options[9] == SD_DHCP_OPTION_END); in test_option_set()
347 printf("%2d: 0x%02x(0x%02x) (options)\n", 10, result->options[10], in test_option_set()
350 assert_se(result->options[10] == SD_DHCP_OPTION_PAD); in test_option_set()
354 printf("%2u: 0x%02x(0x%02x) (sname)\n", i, result->sname[i], in test_option_set()
356 assert_se(result->sname[i] == the_options[i + 9]); in test_option_set()