Searched refs:snl_allocz (Results 1 – 4 of 4) sorted by relevance
/freebsd/sbin/ifconfig/ |
H A D | ifconfig_netlink.c | 155 struct ifmap *ifmap = snl_allocz(ss, sizeof(*ifmap)); in prepare_ifmap() 159 struct iface *iface = snl_allocz(ss, sizeof(*iface)); in prepare_ifmap() 169 struct iface **ifaces= snl_allocz(ss, new_size * sizeof(void *)); in prepare_ifmap() 235 struct ifa *ifa = snl_allocz(ss, sizeof(*ifa)); in prepare_ifaddrs() 322 struct ifa **sorted_ifaddrs = snl_allocz(ss, iface->ifa_count * sizeof(void *)); in sort_iface_ifaddrs() 457 struct iface **sorted_ifaces = snl_allocz(&ss, ifmap->count * sizeof(void *)); in list_interfaces_nl()
|
/freebsd/sys/netlink/ |
H A D | netlink_snl.h | 202 snl_allocz(struct snl_state *ss, int len) in snl_allocz() function 643 char *buf = (char *)snl_allocz(ss, maxlen + 1); in snl_attr_get_stringn() 673 char *buf = (char *)snl_allocz(ss, maxlen); in snl_attr_dup_string() 709 array->items = (void **)snl_allocz(ss, size * sizeof(void *)); in snl_attr_get_parray_sz() 726 void *item = snl_allocz(ss, p->out_size); in snl_attr_get_parray_sz() 739 void **new_array = (void **)snl_allocz(ss, new_size *sizeof(void *)); in snl_attr_get_parray_sz() 776 void *ptr = snl_allocz(ss, nla->nla_len); in snl_attr_dup_nla() 790 void *ptr = snl_allocz(ss, NLA_DATA_LEN(nla)); in snl_attr_copy_struct() 804 void *ptr = snl_allocz(ss, NLA_DATA_LEN(nla)); in snl_attr_dup_struct() 1050 nw->base = (char *)snl_allocz(ss, nw->size); in snl_init_writer() [all …]
|
H A D | netlink_snl_route.h | 43 sin = (struct sockaddr_in *)snl_allocz(ss, sizeof(struct sockaddr_in)); in parse_rta_ip4() 59 sin6 = (struct sockaddr_in6 *)snl_allocz(ss, sizeof(struct sockaddr_in6)); in parse_rta_ip6()
|
/freebsd/sbin/route/ |
H A D | route_netlink.c | 76 struct sockaddr_in *sin = snl_allocz(ss, sizeof(*sin)); in get_netmask() 87 struct sockaddr_in6 *sin6 = snl_allocz(ss, sizeof(*sin6)); in get_netmask() 336 char *buf = snl_allocz(ss, len + 1); in get_ifdata()
|