Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 27) sorted by relevance

12

/bionic/libc/bionic/
Dbionic_netlink.cpp65 nlmsghdr hdr; in SendRequest() member
69 request.hdr.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST; in SendRequest()
70 request.hdr.nlmsg_type = type; in SendRequest()
71 request.hdr.nlmsg_len = sizeof(request); in SendRequest()
80 nlmsghdr* hdr = reinterpret_cast<nlmsghdr*>(data_); in ReadResponses() local
81 for (; NLMSG_OK(hdr, static_cast<size_t>(bytes_read)); hdr = NLMSG_NEXT(hdr, bytes_read)) { in ReadResponses()
82 if (hdr->nlmsg_type == NLMSG_DONE) return true; in ReadResponses()
83 if (hdr->nlmsg_type == NLMSG_ERROR) { in ReadResponses()
84 nlmsgerr* err = reinterpret_cast<nlmsgerr*>(NLMSG_DATA(hdr)); in ReadResponses()
85 errno = (hdr->nlmsg_len >= NLMSG_LENGTH(sizeof(nlmsgerr))) ? -err->error : EIO; in ReadResponses()
[all …]
Dnet_if.cpp86 static void __if_nameindex_callback(void* context, nlmsghdr* hdr) { in __if_nameindex_callback() argument
88 if (hdr->nlmsg_type == RTM_NEWLINK) { in __if_nameindex_callback()
89 ifinfomsg* ifi = reinterpret_cast<ifinfomsg*>(NLMSG_DATA(hdr)); in __if_nameindex_callback()
97 size_t rta_len = IFLA_PAYLOAD(hdr); in __if_nameindex_callback()
Difaddrs.cpp162 static void __getifaddrs_callback(void* context, nlmsghdr* hdr) { in __getifaddrs_callback() argument
165 if (hdr->nlmsg_type == RTM_NEWLINK) { in __getifaddrs_callback()
166 ifinfomsg* ifi = reinterpret_cast<ifinfomsg*>(NLMSG_DATA(hdr)); in __getifaddrs_callback()
175 size_t rta_len = IFLA_PAYLOAD(hdr); in __getifaddrs_callback()
195 } else if (hdr->nlmsg_type == RTM_NEWADDR) { in __getifaddrs_callback()
196 ifaddrmsg* msg = reinterpret_cast<ifaddrmsg*>(NLMSG_DATA(hdr)); in __getifaddrs_callback()
220 size_t rta_len = IFA_PAYLOAD(hdr); in __getifaddrs_callback()
/bionic/tests/
Dnetinet_ip_icmp_test.cpp22 icmphdr hdr = { .type = ICMP_ECHO }; in TEST() local
23 ASSERT_EQ(ICMP_ECHO, hdr.type); in TEST()
24 ASSERT_EQ(0, hdr.code); in TEST()
25 ASSERT_EQ(0, hdr.checksum); in TEST()
26 ASSERT_EQ(0, hdr.un.echo.id); in TEST()
27 ASSERT_EQ(0, hdr.un.echo.sequence); in TEST()
28 ASSERT_EQ(0U, hdr.un.gateway); in TEST()
29 ASSERT_EQ(0, hdr.un.frag.mtu); in TEST()
/bionic/libc/kernel/uapi/linux/
Dvirtio_gpu.h87 struct virtio_gpu_ctrl_hdr hdr; member
101 struct virtio_gpu_ctrl_hdr hdr; member
106 struct virtio_gpu_ctrl_hdr hdr; member
113 struct virtio_gpu_ctrl_hdr hdr; member
119 struct virtio_gpu_ctrl_hdr hdr; member
125 struct virtio_gpu_ctrl_hdr hdr; member
137 struct virtio_gpu_ctrl_hdr hdr; member
142 struct virtio_gpu_ctrl_hdr hdr; member
148 struct virtio_gpu_ctrl_hdr hdr; member
160 struct virtio_gpu_ctrl_hdr hdr; member
[all …]
Dvboxguest.h37 struct vbg_ioctl_hdr hdr; member
58 struct vbg_ioctl_hdr hdr; member
70 struct vbg_ioctl_hdr hdr; member
79 struct vbg_ioctl_hdr hdr; member
95 struct vbg_ioctl_hdr hdr; member
104 struct vbg_ioctl_hdr hdr; member
118 struct vbg_ioctl_hdr hdr; member
128 struct vbg_ioctl_hdr hdr; member
141 struct vbg_ioctl_hdr hdr; member
155 struct vbg_ioctl_hdr hdr; member
[all …]
Dauto_fs.h40 struct autofs_packet_hdr hdr; member
46 struct autofs_packet_hdr hdr; member
85 struct autofs_packet_hdr hdr; member
91 struct autofs_packet_hdr hdr; member
97 struct autofs_packet_hdr hdr; member
113 struct autofs_packet_hdr hdr; member
Dtarget_core_user.h53 struct tcmu_cmd_entry_hdr hdr; member
74 struct tcmu_cmd_entry_hdr hdr; member
Datm_tcp.h34 struct atmtcp_hdr hdr; member
Dvirtio_net.h108 struct virtio_net_hdr_v1 hdr; member
133 struct virtio_net_hdr hdr; member
Dhyperv.h79 struct hv_fcopy_hdr hdr; member
87 struct hv_fcopy_hdr hdr; member
Ddns_resolver.h60 struct dns_payload_header hdr; member
Dif_fddi.h88 } hdr; member
Dfanotify.h91 struct fanotify_event_info_header hdr; member
Dif_packet.h188 union tpacket_bd_header_u hdr; member
Dtcp.h41 struct tcphdr hdr; member
/bionic/libc/kernel/uapi/scsi/
Dscsi_netlink.h50 …I_NL_HDR(hdr,t,mtype,mlen) { (hdr)->version = SCSI_NL_VERSION; (hdr)->transport = t; (hdr)->magic … argument
Dcxlflash_ioctl.h35 struct dk_cxlflash_hdr hdr; member
46 struct dk_cxlflash_hdr hdr; member
51 struct dk_cxlflash_hdr hdr; member
59 struct dk_cxlflash_hdr hdr; member
67 struct dk_cxlflash_hdr hdr; member
73 struct dk_cxlflash_hdr hdr; member
81 struct dk_cxlflash_hdr hdr; member
90 struct dk_cxlflash_hdr hdr; member
101 struct dk_cxlflash_hdr hdr; member
113 struct dk_cxlflash_hdr hdr; member
[all …]
/bionic/libc/kernel/uapi/asm-arm/asm/
Dsetup.h105 struct tag_header hdr; member
124 …er_present(tag,member) ((unsigned long) (& ((struct tag *) 0L)->member + 1) <= (tag)->hdr.size * 4)
125 #define tag_next(t) ((struct tag *) ((__u32 *) (t) + (t)->hdr.size))
127 #define for_each_tag(t,base) for(t = base; t->hdr.size; t = tag_next(t))
/bionic/libc/kernel/uapi/linux/android/
Dbinder.h55 struct binder_object_header hdr; member
64 struct binder_object_header hdr; member
73 struct binder_object_header hdr; member
84 struct binder_object_header hdr; member
/bionic/libc/kernel/uapi/rdma/
Dib_user_verbs.h763 struct ib_uverbs_flow_spec_hdr hdr; member
783 struct ib_uverbs_flow_spec_hdr hdr; member
799 struct ib_uverbs_flow_spec_hdr hdr; member
820 struct ib_uverbs_flow_spec_hdr hdr; member
832 struct ib_uverbs_flow_spec_hdr hdr; member
844 struct ib_uverbs_flow_spec_hdr hdr; member
854 struct ib_uverbs_flow_spec_hdr hdr; member
866 struct ib_uverbs_flow_spec_hdr hdr; member
881 struct ib_uverbs_flow_spec_hdr hdr; member
897 struct ib_uverbs_flow_spec_hdr hdr; member
[all …]
Dib_user_mad.h63 struct ib_user_mad_hdr hdr; member
/bionic/libc/kernel/uapi/asm-x86/asm/
Dbootparam.h136 } __attribute__((packed)) hdr; member
178 struct setup_header hdr; member
Dkvm.h379 } hdr; member
/bionic/libc/kernel/uapi/sound/
Dasoc.h257 struct snd_soc_tplg_ctl_hdr hdr; member
268 struct snd_soc_tplg_ctl_hdr hdr; member
280 struct snd_soc_tplg_ctl_hdr hdr; member

12