Searched refs:nl_header (Results 1 – 5 of 5) sorted by relevance
44 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data_.data()); in NL80211Packet() local45 nl_header->nlmsg_len = data_.size(); in NL80211Packet()47 nl_header->nlmsg_flags = nl_header->nlmsg_flags | NLM_F_REQUEST; in NL80211Packet()48 nl_header->nlmsg_type = type; in NL80211Packet()49 nl_header->nlmsg_seq = sequence; in NL80211Packet()50 nl_header->nlmsg_pid = pid; in NL80211Packet()66 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in IsValid() local72 nl_header->nlmsg_len < NLMSG_HDRLEN + GENL_HDRLEN) { in IsValid()82 nl_header->nlmsg_len < NLMSG_HDRLEN + sizeof(int)) { in IsValid()89 if (data_.size() < nl_header->nlmsg_len || in IsValid()[all …]
160 nlattr* nl_header = reinterpret_cast<nlattr*>(data_.data()); in AddFlagAttribute() local161 nl_header->nla_len += NLA_HDRLEN; in AddFlagAttribute()
92 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(ptr); in ReceivePacketAndRunHandler() local94 new NL80211Packet(vector<uint8_t>(ptr, ptr + nl_header->nlmsg_len))); in ReceivePacketAndRunHandler()95 ptr += nl_header->nlmsg_len; in ReceivePacketAndRunHandler()
61 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data.data()); in CreateControlMessageError() local62 nl_header->nlmsg_len = data.size(); in CreateControlMessageError()63 nl_header->nlmsg_type = NLMSG_ERROR; in CreateControlMessageError()64 nl_header->nlmsg_seq = kFakeSequenceNumber; in CreateControlMessageError()65 nl_header->nlmsg_pid = getpid(); in CreateControlMessageError()
68 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data.data()); in CreateControlMessageError() local69 nl_header->nlmsg_len = data.size(); in CreateControlMessageError()70 nl_header->nlmsg_type = NLMSG_ERROR; in CreateControlMessageError()71 nl_header->nlmsg_seq = kFakeSequenceNumber; in CreateControlMessageError()72 nl_header->nlmsg_pid = getpid(); in CreateControlMessageError()