Searched refs:hdr (Results 26 - 50 of 700) sorted by relevance

1234567891011>>

/openbsd-current/usr.sbin/tcpdump/
H A Dprint-enc.c59 const struct enchdr *hdr; local
77 hdr = (struct enchdr *)p;
78 flags = hdr->flags;
86 printf("SPI 0x%08x: ", ntohl(hdr->spi));
91 switch (hdr->af) {
H A Dprint-dhcp6.c128 uint32_t hdr; local
186 if (l < sizeof(hdr))
188 if (length < sizeof(hdr))
191 hdr = EXTRACT_32BITS(cp);
192 printf(" xid %x", hdr & 0xffffff);
195 cp += sizeof(hdr);
196 length -= sizeof(hdr);
/openbsd-current/usr.sbin/dvmrpd/
H A Dcontrol.c253 switch (imsg.hdr.type) {
257 dvmrpe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
260 if (imsg.hdr.len == IMSG_HEADER_SIZE +
269 if (imsg.hdr.len == IMSG_HEADER_SIZE +
283 c->iev.ibuf.pid = imsg.hdr.pid;
284 dvmrpe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid,
285 imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
288 if (imsg.hdr.len != IMSG_HEADER_SIZE +
293 dvmrpe_imsg_compose_parent(imsg.hdr
[all...]
/openbsd-current/usr.sbin/eigrpd/
H A Dcontrol.c245 switch (imsg.hdr.type) {
249 c->iev.ibuf.pid = imsg.hdr.pid;
250 eigrpe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
254 c->iev.ibuf.pid = imsg.hdr.pid;
255 eigrpe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
256 imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
259 if (imsg.hdr.len != IMSG_HEADER_SIZE +
269 if (imsg.hdr.len != IMSG_HEADER_SIZE +
273 c->iev.ibuf.pid = imsg.hdr
[all...]
/openbsd-current/libexec/ld.so/ldconfig/
H A Dldconfig.c302 struct hints_header hdr; local
314 hdr.hh_magic = HH_MAGIC;
315 hdr.hh_version = LD_HINTS_VERSION_2;
316 hdr.hh_nbucket = 1 * nhints;
317 n = hdr.hh_nbucket * sizeof(struct hints_bucket);
318 hdr.hh_hashtab = sizeof(struct hints_header);
319 hdr.hh_strtab = hdr.hh_hashtab + n;
320 hdr.hh_dirlist = strtab_sz;
322 hdr
428 struct hints_header *hdr; local
[all...]
/openbsd-current/usr.bin/aucat/
H A Dafile.c427 struct wav_hdr hdr; local
429 memset(&hdr, 0, sizeof(struct wav_hdr));
430 memcpy(hdr.riff.id, wav_id_riff, 4);
431 memcpy(hdr.riff.type, wav_id_wave, 4);
432 le32_set(&hdr.riff.size, f->endpos - sizeof(hdr.riff));
433 memcpy(hdr.fmt_hdr.id, wav_id_fmt, 4);
434 le32_set(&hdr.fmt_hdr.size, sizeof(hdr.fmt));
435 le16_set(&hdr
622 struct aiff_hdr hdr; local
661 struct au_hdr hdr; local
731 struct au_hdr hdr; local
866 afile_open(struct afile *f, char *path, int hdr, int flags, struct aparams *par, int rate, int nch) argument
[all...]
/openbsd-current/gnu/usr.sbin/mkhybrid/src/libhfs_iso/
H A Dbtree.c44 if (np->nnum < 0 || (np->nnum > 0 && np->nnum >= bt->hdr.bthNNodes))
97 if (np->nnum && np->nnum >= bt->hdr.bthNNodes)
168 d_fetchw(&ptr, (short *) &bt->hdr.bthDepth);
169 d_fetchl(&ptr, (long *) &bt->hdr.bthRoot);
170 d_fetchl(&ptr, (long *) &bt->hdr.bthNRecs);
171 d_fetchl(&ptr, (long *) &bt->hdr.bthFNode);
172 d_fetchl(&ptr, (long *) &bt->hdr.bthLNode);
173 d_fetchw(&ptr, (short *) &bt->hdr.bthNodeSize);
174 d_fetchw(&ptr, (short *) &bt->hdr.bthKeyLen);
175 d_fetchl(&ptr, (long *) &bt->hdr
[all...]
/openbsd-current/usr.sbin/ospfd/
H A Dcontrol.c277 switch (imsg.hdr.type) {
280 ospfe_fib_update(imsg.hdr.type);
284 c->iev.ibuf.pid = imsg.hdr.pid;
285 ospfe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
290 c->iev.ibuf.pid = imsg.hdr.pid;
291 ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
292 imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
295 if (imsg.hdr.len == IMSG_HEADER_SIZE +
313 c->iev.ibuf.pid = imsg.hdr
[all...]
H A Drde_lsdb.c81 v->ls_id = ntohl(lsa->hdr.ls_id);
82 v->adv_rtr = ntohl(lsa->hdr.adv_rtr);
83 v->type = lsa->hdr.type;
187 if (len < sizeof(lsa->hdr)) {
191 if (ntohs(lsa->hdr.len) != len) {
202 if ((ntohs(lsa->hdr.age) < 1 && !nbr->self) ||
203 ntohs(lsa->hdr.age) > MAX_AGE) {
209 if (ntohl(lsa->hdr.seq_num) == RESV_SEQ_NUM) {
214 switch (lsa->hdr.type) {
221 len < sizeof(lsa->hdr)
[all...]
/openbsd-current/usr.sbin/ospf6d/
H A Dcontrol.c277 switch (imsg.hdr.type) {
280 ospfe_fib_update(imsg.hdr.type);
284 c->iev.ibuf.pid = imsg.hdr.pid;
285 ospfe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0);
289 c->iev.ibuf.pid = imsg.hdr.pid;
290 ospfe_imsg_compose_parent(imsg.hdr.type, imsg.hdr.pid,
291 imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE);
294 if (imsg.hdr.len == IMSG_HEADER_SIZE +
313 c->iev.ibuf.pid = imsg.hdr
[all...]
H A Drde.c300 switch (imsg.hdr.type) {
302 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(rn))
306 if (rde_nbr_new(imsg.hdr.peerid, &rn) == NULL)
311 rde_nbr_del(rde_nbr_find(imsg.hdr.peerid));
314 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
318 nbr = rde_nbr_find(imsg.hdr.peerid);
335 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(state))
339 if (area->id.s_addr == imsg.hdr.peerid)
348 nbr = rde_nbr_find(imsg.hdr.peerid);
354 imsg_compose_event(iev_ospfe, IMSG_DB_END, imsg.hdr
[all...]
/openbsd-current/regress/sys/net/pf_fragment/
H A Dping_mtu_1300.py10 hdr=IP(flags="DF", src=SRC_OUT, dst=dstaddr)/ICMP(type='echo-request', id=eid) variable
11 payload=b"a" * (1400 - len(bytes(hdr)))
12 ip=hdr/payload
/openbsd-current/gnu/usr.bin/binutils-2.17/bfd/
H A Darchive.c391 struct ar_hdr hdr;
392 char *hdrp = (char *) &hdr;
406 if (strncmp (hdr.ar_fmag, ARFMAG, 2) != 0
408 || strncmp (hdr.ar_fmag, mag, 2) != 0))
415 parsed_size = strtol (hdr.ar_size, NULL, 10);
425 if ((hdr.ar_name[0] == '/'
426 || (hdr.ar_name[0] == ' '
427 && memchr (hdr.ar_name, '/', ar_maxnamelen (abfd)) == NULL))
430 filename = get_extended_arelt_filename (abfd, hdr.ar_name);
436 else if (hdr
387 struct ar_hdr hdr; local
1283 struct ar_hdr *hdr = arch_hdr (current); local
1324 struct ar_hdr *hdr = arch_hdr (current); local
1381 struct ar_hdr *hdr; local
1469 struct ar_hdr *hdr; local
1534 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local
1566 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local
1614 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local
1721 struct ar_hdr hdr; local
1744 struct ar_hdr *hdr = arch_hdr (current); local
1960 struct ar_hdr hdr; local
2049 struct ar_hdr hdr; local
2118 struct ar_hdr hdr; local
[all...]
H A Di386msdos.c55 static char hdr[EXE_PAGE_SIZE]; local
56 file_ptr outfile_size = sizeof(hdr);
73 file_ptr sec_end = (sizeof (hdr)
89 H_PUT_16 (abfd, EXE_MAGIC, &hdr[0]);
90 H_PUT_16 (abfd, EXE_PAGE_SIZE / 16, &hdr[8]);
91 H_PUT_16 (abfd, EXE_LOAD_LOW, &hdr[12]);
92 H_PUT_16 (abfd, 0x3e, &hdr[24]);
93 H_PUT_16 (abfd, 0x0001, &hdr[28]); /* XXX??? */
94 H_PUT_16 (abfd, 0x30fb, &hdr[30]); /* XXX??? */
95 H_PUT_16 (abfd, 0x726a, &hdr[3
[all...]
H A Darchive64.c158 struct ar_hdr hdr; local
171 memset (&hdr, ' ', sizeof (struct ar_hdr));
172 memcpy (hdr.ar_name, "/SYM64/", strlen ("/SYM64/"));
173 _bfd_ar_spacepad (hdr.ar_size, sizeof (hdr.ar_size), "%-10ld",
175 _bfd_ar_spacepadll (hdr.ar_date, sizeof (hdr.ar_date), "%lld",
178 _bfd_ar_spacepad (hdr.ar_uid, sizeof (hdr.ar_uid), "%ld", 0);
179 _bfd_ar_spacepad (hdr
[all...]
/openbsd-current/sys/arch/amd64/amd64/
H A Dbios.c93 struct smbhdr *hdr = NULL; local
97 hdr = smbios_find(PMAP_DIRECT_MAP(
100 if (hdr == NULL) {
104 hdr = smbios_find(p);
105 if (hdr != NULL)
110 if (hdr != NULL) {
111 pa = trunc_page(hdr->addr);
112 end = round_page(hdr->addr + hdr->size);
117 smbios_entry.addr = (uint8_t *)(va + (hdr
246 struct smbhdr *hdr = (struct smbhdr *)p; local
282 struct smbtblhdr *hdr; local
[all...]
/openbsd-current/gnu/usr.bin/binutils/bfd/
H A Darchive.c336 struct ar_hdr hdr;
337 char *hdrp = (char *) &hdr;
351 if (strncmp (hdr.ar_fmag, ARFMAG, 2) != 0
353 || strncmp (hdr.ar_fmag, mag, 2) != 0))
360 parsed_size = strtol (hdr.ar_size, NULL, 10);
370 if ((hdr.ar_name[0] == '/'
371 || (hdr.ar_name[0] == ' '
372 && memchr (hdr.ar_name, '/', ar_maxnamelen (abfd)) == NULL))
375 filename = get_extended_arelt_filename (abfd, hdr.ar_name);
384 else if (hdr
334 struct ar_hdr hdr; local
1228 struct ar_hdr *hdr = arch_hdr (current); local
1269 struct ar_hdr *hdr = arch_hdr (current); local
1335 struct ar_hdr *hdr; local
1424 struct ar_hdr *hdr; local
1489 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local
1521 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local
1569 struct ar_hdr *hdr = (struct ar_hdr *) arhdr; local
1685 struct ar_hdr hdr; local
1711 struct ar_hdr *hdr = arch_hdr (current); local
1927 struct ar_hdr hdr; local
2011 struct ar_hdr hdr; local
2084 struct ar_hdr hdr; local
[all...]
H A Di386msdos.c78 static char hdr[EXE_PAGE_SIZE]; local
79 file_ptr outfile_size = sizeof(hdr);
97 file_ptr sec_end = sizeof(hdr)
113 H_PUT_16 (abfd, EXE_MAGIC, &hdr[0]);
114 H_PUT_16 (abfd, EXE_PAGE_SIZE / 16, &hdr[8]);
115 H_PUT_16 (abfd, EXE_LOAD_LOW, &hdr[12]);
116 H_PUT_16 (abfd, 0x3e, &hdr[24]);
117 H_PUT_16 (abfd, 0x0001, &hdr[28]); /* XXX??? */
118 H_PUT_16 (abfd, 0x30fb, &hdr[30]); /* XXX??? */
119 H_PUT_16 (abfd, 0x726a, &hdr[3
[all...]
/openbsd-current/usr.sbin/dhcrelay6/
H A Dbpf.c304 struct bpf_hdr hdr; local
333 sizeof(hdr)) {
339 memcpy(&hdr, &interface->rbuf[interface->rbuf_offset],
340 sizeof(hdr));
346 if (interface->rbuf_offset + hdr.bh_hdrlen + hdr.bh_caplen >
357 if (hdr.bh_caplen != hdr.bh_datalen) {
358 interface->rbuf_offset += hdr.bh_hdrlen =
359 hdr
[all...]
/openbsd-current/usr.sbin/smtpd/
H A Drfc5322.h20 const char *hdr; member in struct:rfc5322_result
/openbsd-current/sbin/dhcpleased/
H A Dcontrol.c255 switch (imsg.hdr.type) {
257 frontend_imsg_compose_main(imsg.hdr.type, 0, NULL, 0);
262 c->iev.ibuf.pid = imsg.hdr.pid;
264 frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
266 frontend_imsg_compose_engine(imsg.hdr.type, 0,
267 imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
275 c->iev.ibuf.pid = imsg.hdr.pid;
276 frontend_imsg_compose_engine(imsg.hdr.type, 0,
277 imsg.hdr
[all...]
/openbsd-current/sys/dev/acpi/
H A Dacpimcfg.c41 struct acpi_table_header *hdr; local
52 hdr = (struct acpi_table_header *)aaa->aaa_table;
53 if (memcmp(hdr->signature, MCFG_SIG, sizeof(MCFG_SIG) - 1) != 0)
68 while (addr < (caddr_t)mcfg + mcfg->hdr.length) {
/openbsd-current/sbin/dhcp6leased/
H A Dcontrol.c255 switch (imsg.hdr.type) {
257 frontend_imsg_compose_main(imsg.hdr.type, 0, NULL, 0);
262 c->iev.ibuf.pid = imsg.hdr.pid;
264 frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
266 frontend_imsg_compose_engine(imsg.hdr.type, 0,
267 imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
275 c->iev.ibuf.pid = imsg.hdr.pid;
276 frontend_imsg_compose_engine(imsg.hdr.type, 0,
277 imsg.hdr
[all...]
/openbsd-current/sbin/isakmpd/
H A Dlog.c492 struct packhdr hdr; local
510 bzero(&hdr, sizeof hdr);
513 /* isakmp - turn off the encryption bit in the isakmp hdr */
529 hdr.sa_family = htonl(src->sa_family);
533 hdr.sa_family = htonl(AF_INET);
534 hdr.ip.ip4.ip_src.s_addr = 0x02020202;
535 hdr.ip.ip4.ip_dst.s_addr = 0x01010101;
540 hdr.ip.ip4.ip_src.s_addr =
542 hdr
600 udp_cksum(struct packhdr *hdr, const struct udphdr *u, u_int16_t *d) argument
[all...]
/openbsd-current/sbin/unwind/
H A Dcontrol.c262 switch (imsg.hdr.type) {
275 c->iev.ibuf.pid = imsg.hdr.pid;
276 switch (imsg.hdr.type) {
278 frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
286 frontend_imsg_compose_main(imsg.hdr.type, imsg.hdr.pid,
288 frontend_imsg_compose_resolver(imsg.hdr.type,
289 imsg.hdr.pid, imsg.data, IMSG_DATA_SIZE(imsg));
299 frontend_imsg_compose_resolver(imsg.hdr
[all...]

Completed in 160 milliseconds

1234567891011>>