28 vl_api_address_family_t af = va_arg (*args, vl_api_address_family_t);
41 const vl_api_address_t *
addr = va_arg (*args, vl_api_address_t *);
54 const vl_api_address_union_t *
addr =
55 va_arg (*args, vl_api_address_union_t *);
56 vl_api_address_family_t af = va_arg (*args, vl_api_address_family_t);
69 const vl_api_ip4_address_t *
addr = va_arg (*args, vl_api_ip4_address_t *);
79 const vl_api_ip6_address_t *
addr = va_arg (*args, vl_api_ip6_address_t *);
89 const vl_api_prefix_t *pfx = va_arg (*args, vl_api_prefix_t *);
92 &pfx->address, pfx->len);
100 vl_api_mac_address_t *
mac = va_arg (*args, vl_api_mac_address_t *);
108 vl_api_version_t *ver = va_arg (*args, vl_api_version_t *);
109 s =
format(s,
"%d.%d.%d", ver->major, ver->minor, ver->patch);
110 if (ver->pre_release[0] != 0)
112 s =
format(s,
"-%v", ver->pre_release);
113 if (ver->build_metadata[0] != 0)
114 s =
format(s,
"+%v", ver->build_metadata);
122 vl_api_mac_address_t *
mac = va_arg (*args, vl_api_mac_address_t *);
130 vl_api_address_t *
ip = va_arg (*args, vl_api_address_t *);
146 vl_api_address_family_t *af = va_arg (*args, vl_api_address_family_t *);
161 vl_api_ip4_address_t *
ip = va_arg (*args, vl_api_ip4_address_t *);
171 vl_api_ip6_address_t *
ip = va_arg (*args, vl_api_ip6_address_t *);
181 vl_api_prefix_t *pfx = va_arg (*args, vl_api_prefix_t *);
192 vl_api_mprefix_t *pfx = va_arg (*args, vl_api_mprefix_t *);
196 &pfx->grp_address_length))
200 &pfx->grp_address_length))
207 pfx->grp_address_length = 64;
214 pfx->grp_address_length = 256;
220 pfx->grp_address_length = 32;
221 clib_memset(&pfx->src_address, 0,
sizeof(pfx->src_address));
227 pfx->grp_address_length = 128;
228 clib_memset(&pfx->src_address, 0,
sizeof(pfx->src_address));
238 vl_api_version_t *ver = va_arg (*args, vl_api_version_t *);
240 if (
unformat (input,
"%d.%d.%d-%s+%s", ver->major, ver->minor, ver->patch, ver->pre_release, ver->build_metadata
243 else if (
unformat (input,
"%d.%d.%d-%s", ver->major, ver->minor, ver->patch, ver->pre_release
246 else if (
unformat (input,
"%d.%d.%d", ver->major, ver->minor, ver->patch
uword unformat_vl_api_ip4_address(unformat_input_t *input, va_list *args)
u8 * format_vl_api_mac_address(u8 *s, va_list *args)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
u8 * format_vl_api_address(u8 *s, va_list *args)
uword unformat_vl_api_ip6_address(unformat_input_t *input, va_list *args)
u8 * format_vl_api_ip6_address(u8 *s, va_list *args)
u8 * format_ethernet_address(u8 *s, va_list *args)
u8 * format_vl_api_address_family(u8 *s, va_list *args)
u8 * format_vl_api_prefix(u8 *s, va_list *args)
u8 * format_vl_api_version(u8 *s, va_list *args)
uword unformat_vl_api_prefix(unformat_input_t *input, va_list *args)
const vl_api_mac_address_t VL_API_ZERO_MAC_ADDRESS
uword unformat_ethernet_address(unformat_input_t *input, va_list *args)
u8 * format_vl_api_ip4_address(u8 *s, va_list *args)
uword unformat_vl_api_address(unformat_input_t *input, va_list *args)
uword unformat_vl_api_mac_address(unformat_input_t *input, va_list *args)
uword unformat_vl_api_mprefix(unformat_input_t *input, va_list *args)
uword unformat_vl_api_version(unformat_input_t *input, va_list *args)
const vl_api_address_t VL_API_ZERO_ADDRESS
uword unformat_vl_api_address_family(unformat_input_t *input, va_list *args)
u8 * format_vl_api_address_union(u8 *s, va_list *args)