Lines Matching defs:result
287 _cleanup_free_ DHCPMessage *result = NULL;
291 result = malloc0(sizeof(DHCPMessage) + 11);
292 assert_se(result);
294 result->options[0] = 'A';
295 result->options[1] = 'B';
296 result->options[2] = 'C';
297 result->options[3] = 'D';
299 assert_se(dhcp_option_append(result, 0, &offset, 0, SD_DHCP_OPTION_PAD,
304 assert_se(dhcp_option_append(result, 5, &offset, 0, SD_DHCP_OPTION_PAD,
307 assert_se(dhcp_option_append(result, 6, &offset, 0, SD_DHCP_OPTION_PAD,
314 assert_se(dhcp_option_append(result, len, &offset, DHCP_OVERLOAD_SNAME,
330 printf("%2u: 0x%02x(0x%02x) (options)\n", i, result->options[i],
332 assert_se(result->options[i] == options[i]);
336 printf("%2d: 0x%02x(0x%02x) (options)\n", 9, result->options[9],
339 assert_se(result->options[9] == SD_DHCP_OPTION_END);
342 printf("%2d: 0x%02x(0x%02x) (options)\n", 10, result->options[10],
345 assert_se(result->options[10] == SD_DHCP_OPTION_PAD);
349 printf("%2u: 0x%02x(0x%02x) (sname)\n", i, result->sname[i],
351 assert_se(result->sname[i] == options[i + 9]);