Lines Matching defs:hdr
145 struct pcapng_section_header *hdr;
150 len = sizeof(*hdr);
167 hdr = (struct pcapng_section_header *)buf;
168 *hdr = (struct pcapng_section_header) {
178 opt = (struct pcapng_option *)(hdr + 1);
196 memcpy(opt, &hdr->block_length, sizeof(uint32_t));
207 struct pcapng_interface_block *hdr;
250 len = sizeof(*hdr);
272 hdr = (struct pcapng_interface_block *)buf;
273 *hdr = (struct pcapng_interface_block) {
279 opt = (struct pcapng_option *)(hdr + 1);
312 memcpy(opt, &hdr->block_length, sizeof(uint32_t));
328 struct pcapng_statistics *hdr;
352 len = sizeof(*hdr) + optlen + sizeof(uint32_t);
356 hdr = (struct pcapng_statistics *)buf;
357 opt = (struct pcapng_option *)(hdr + 1);
374 hdr->block_type = PCAPNG_INTERFACE_STATS_BLOCK;
375 hdr->block_length = len;
376 hdr->interface_id = self->port_index[port_id];
379 hdr->timestamp_hi = sample_time >> 32;
380 hdr->timestamp_lo = (uint32_t)sample_time;