Lines Matching refs:attr_data
735 void *attr_data; in sd_netlink_message_read() local
740 r = netlink_message_read_internal(m, type, &attr_data, NULL); in sd_netlink_message_read()
748 memcpy(data, attr_data, size); in sd_netlink_message_read()
754 void *attr_data; in sd_netlink_message_read_data() local
759 r = netlink_message_read_internal(m, type, &attr_data, NULL); in sd_netlink_message_read_data()
766 data = memdup(attr_data, r); in sd_netlink_message_read_data()
780 void *attr_data; in sd_netlink_message_read_data_suffix0() local
785 r = netlink_message_read_internal(m, type, &attr_data, NULL); in sd_netlink_message_read_data_suffix0()
792 data = memdup_suffix0(attr_data, r); in sd_netlink_message_read_data_suffix0()
806 void *attr_data; in sd_netlink_message_read_string_strdup() local
815 r = netlink_message_read_internal(m, type, &attr_data, NULL); in sd_netlink_message_read_string_strdup()
822 str = strndup(attr_data, r); in sd_netlink_message_read_string_strdup()
833 void *attr_data; in sd_netlink_message_read_string() local
842 r = netlink_message_read_internal(m, type, &attr_data, NULL); in sd_netlink_message_read_string()
846 if (strnlen(attr_data, r) >= (size_t) r) in sd_netlink_message_read_string()
850 *data = (const char *) attr_data; in sd_netlink_message_read_string()
856 void *attr_data; in sd_netlink_message_read_u8() local
865 r = netlink_message_read_internal(m, type, &attr_data, NULL); in sd_netlink_message_read_u8()
873 *data = *(uint8_t *) attr_data; in sd_netlink_message_read_u8()
879 void *attr_data; in sd_netlink_message_read_u16() local
889 r = netlink_message_read_internal(m, type, &attr_data, &net_byteorder); in sd_netlink_message_read_u16()
898 *data = be16toh(*(uint16_t *) attr_data); in sd_netlink_message_read_u16()
900 *data = *(uint16_t *) attr_data; in sd_netlink_message_read_u16()
907 void *attr_data; in sd_netlink_message_read_u32() local
917 r = netlink_message_read_internal(m, type, &attr_data, &net_byteorder); in sd_netlink_message_read_u32()
926 *data = be32toh(*(uint32_t *) attr_data); in sd_netlink_message_read_u32()
928 *data = *(uint32_t *) attr_data; in sd_netlink_message_read_u32()
935 void *attr_data; in sd_netlink_message_read_ether_addr() local
944 r = netlink_message_read_internal(m, type, &attr_data, NULL); in sd_netlink_message_read_ether_addr()
952 memcpy(data, attr_data, sizeof(struct ether_addr)); in sd_netlink_message_read_ether_addr()
958 void *attr_data; in netlink_message_read_hw_addr() local
967 r = netlink_message_read_internal(m, type, &attr_data, NULL); in netlink_message_read_hw_addr()
975 memcpy(data->bytes, attr_data, r); in netlink_message_read_hw_addr()
983 void *attr_data; in sd_netlink_message_read_cache_info() local
992 r = netlink_message_read_internal(m, type, &attr_data, NULL); in sd_netlink_message_read_cache_info()
1000 memcpy(info, attr_data, sizeof(struct ifa_cacheinfo)); in sd_netlink_message_read_cache_info()
1006 void *attr_data; in netlink_message_read_in_addr_union() local
1016 r = netlink_message_read_internal(m, type, &attr_data, NULL); in netlink_message_read_in_addr_union()
1024 memcpy(data, attr_data, FAMILY_ADDRESS_SIZE(family)); in netlink_message_read_in_addr_union()
1052 void *attr_data; in sd_netlink_message_has_flag() local
1063 r = netlink_message_read_internal(m, type, &attr_data, NULL); in sd_netlink_message_has_flag()