Lines Matching refs:payload
53 static void extractIpPorts(WakeupController::ReportArgs& args, Slice payload) { in extractIpPorts() argument
57 if (extract(payload, header) < sizeof(struct tcphdr)) { in extractIpPorts()
66 if (extract(payload, header) < sizeof(struct udphdr)) { in extractIpPorts()
78 static void extractIpHeader(WakeupController::ReportArgs& args, Slice payload) { in extractIpHeader() argument
82 if (extract(payload, header) < sizeof(struct iphdr)) { in extractIpHeader()
91 extractIpPorts(args, drop(payload, header.ihl * 4)); // ipv4 IHL counts 32 bit words. in extractIpHeader()
96 if (extract(payload, header) < sizeof(struct ip6_hdr)) { in extractIpHeader()
107 extractIpPorts(args, drop(payload, sizeof(header))); in extractIpHeader()
135 const auto attrHandler = [&args, &parseAgain](const nlattr attr, const Slice payload) { in init() argument
139 extract(payload, ts); in init()
146 args.prefix = toString(take(payload, payload.size() - 1)); in init()
149 extract(payload, args.uid); in init()
153 extract(payload, args.gid); in init()
158 extract(payload, hwaddr); in init()
166 extract(payload, packetHdr); in init()
175 extractIpHeader(args, payload); in init()