/openbsd-current/usr.sbin/tcpdump/ |
H A D | print-pfsync.c | 84 struct pfsync_header *hdr = (struct pfsync_header *)bp; local 96 pfsync_print(hdr, bp + sizeof(struct pfsync_header), 138 pfsync_print(struct pfsync_header *hdr, const u_char *bp, int len) argument 144 plen = ntohs(hdr->len); 146 printf("PFSYNCv%d len %d", hdr->version, plen); 148 if (hdr->version != PFSYNC_VERSION) 151 plen -= sizeof(*hdr);
|
H A D | privsep_fdpass.c | 37 struct cmsghdr hdr; member in union:__anon10901 75 struct cmsghdr hdr; member in union:__anon10902
|
/openbsd-current/sys/dev/pci/drm/amd/pm/legacy-dpm/ |
H A D | amdgpu_si_smc.c | 205 const struct smc_firmware_header_v1_0 *hdr; local 215 hdr = (const struct smc_firmware_header_v1_0 *)adev->pm.fw->data; 217 amdgpu_ucode_print_smc_hdr(&hdr->header); 219 adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version); 220 ucode_start_address = le32_to_cpu(hdr->ucode_start_addr); 221 ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); 223 (adev->pm.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
|
/openbsd-current/regress/usr.sbin/bgpd/unittests/ |
H A D | rde_community_test.c | 260 u_char hdr[4]; local 265 hdr[2] = (data_len >> 8) & 0xff; 266 hdr[3] = data_len & 0xff; 268 hdr[2] = data_len & 0xff; 271 hdr[0] = flags; 272 hdr[1] = type; 274 if (ibuf_add(buf, hdr, flags & ATTR_EXTLEN ? 4 : 3) == -1)
|
/openbsd-current/gnu/usr.sbin/mkhybrid/src/libhfs_iso/ |
H A D | node.c | 63 if (bt->hdr.bthFree == 0) 70 while (num < bt->hdr.bthNNodes && BMTST(bt->map, num)) 73 if (num == bt->hdr.bthNNodes) 82 --bt->hdr.bthFree; 98 ++bt->hdr.bthFree; 293 if (left->bt->hdr.bthLNode == left->nnum) 295 left->bt->hdr.bthLNode = right.nnum; 390 if (right->bt->hdr.bthLNode == right->nnum) 392 right->bt->hdr.bthLNode = left->nnum;
|
/openbsd-current/gnu/usr.bin/binutils/gdb/ |
H A D | dve3900-rom.c | 682 unsigned char hdr[4]; local 695 hdr[0] = PESC; 696 hdr[1] = type; 697 hdr[2] = len & 0xff; 698 hdr[3] = (len >> 8) & 0xff; 699 debug_write (hdr, sizeof (hdr)); 709 hdr[0] = seq; 710 debug_write (hdr, 1); 734 hdr[ [all...] |
/openbsd-current/usr.sbin/npppctl/ |
H A D | npppctl.c | 149 if (ctl_imsg.hdr.type != IMSG_CTL_OK) 154 if (ctl_imsg.hdr.len - IMSG_HEADER_SIZE < 159 (int)(ctl_imsg.hdr.len - IMSG_HEADER_SIZE), 214 if (ctl_imsg.hdr.type != IMSG_CTL_OK) 220 if (ctl_imsg.hdr.type == IMSG_PPP_START || 221 ctl_imsg.hdr.type == IMSG_PPP_STOP) { 228 (ctl_imsg.hdr.type == 238 ctl_imsg.hdr.type); 359 if (ctl_imsg.hdr.type != IMSG_CTL_OK) 362 ctl_imsg.hdr [all...] |
/openbsd-current/usr.sbin/ospf6d/ |
H A D | lsupdate.c | 345 if (lsa_hdr->seq_num == le->le_ref->hdr.seq_num && 346 lsa_hdr->ls_chksum == le->le_ref->hdr.ls_chksum && 347 ntohs(lsa_hdr->age) >= ntohs(le->le_ref->hdr.age)) { 361 if ((lsa_hdr->type == le->le_ref->hdr.type) && 362 (lsa_hdr->ls_id == le->le_ref->hdr.ls_id) && 363 (lsa_hdr->adv_rtr == le->le_ref->hdr.adv_rtr)) 473 lsa_flood(nbr->iface, nbr, &le->le_ref->hdr, 507 ntohs(le->le_ref->hdr.type), 571 lsa_hash_hdr(const struct lsa_hdr *hdr) argument 573 return SipHash24(&lsacachekey, hdr, sizeo [all...] |
/openbsd-current/usr.sbin/smtpd/ |
H A D | queue.c | 61 switch (imsg->hdr.type) { 273 if (imsg->hdr.len == sizeof imsg->hdr) { 302 imsg->hdr.peerid, 0, -1); 316 m_create(p, imsg->hdr.type, 0, 0, fd); 325 if (imsg->hdr.type == IMSG_MTA_DELIVERY_OK) 336 if (imsg->hdr.type == IMSG_MDA_DELIVERY_OK) 338 else if (imsg->hdr.type == IMSG_MTA_DELIVERY_OK && 428 imsg->hdr.type = IMSG_QUEUE_HOLDQ_HOLD; 433 imsg->hdr [all...] |
H A D | proxy.c | 93 struct proxy_hdr_v2 hdr; member in struct:proxy_session 157 struct proxy_hdr_v2 *h = &s->hdr; 167 if (s->header_len < sizeof(s->hdr)) { 169 off = sizeof(s->hdr) - s->header_len; 171 memcpy((uint8_t *) &s->hdr + s->header_len, buf, off); 178 if (s->header_len < sizeof(s->hdr)) { 276 struct proxy_hdr_v2 *h = &s->hdr; 334 switch (s->hdr.fam) {
|
/openbsd-current/usr.sbin/ntpd/ |
H A D | ntpd.c | 406 switch (imsg.hdr.type) { 408 if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d)) 416 if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d)) 422 if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d)) 438 priv_constraint_msg(imsg.hdr.peerid, 439 imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE, 443 priv_constraint_kill(imsg.hdr.peerid); 721 if (imsg.hdr.type == 727 if (imsg.hdr.type == 732 switch (imsg.hdr [all...] |
/openbsd-current/usr.sbin/npppd/pptp/ |
H A D | pptp_ctrl.c | 904 struct pptp_ctrl_header *hdr; local 909 hdr = (struct pptp_ctrl_header *)pkt; 911 hdr->length = ntohs(hdr->length); 912 hdr->pptp_message_type = ntohs(hdr->pptp_message_type); 913 hdr->magic_cookie = ntohl(hdr->magic_cookie); 914 hdr->control_message_type = ntohs(hdr [all...] |
/openbsd-current/usr.sbin/vmd/ |
H A D | vmm.c | 119 uint32_t id = 0, peerid = imsg->hdr.peerid; 123 switch (imsg->hdr.type) { 241 imsg->hdr.type, imsg->hdr.peerid, imsg->hdr.pid, 255 imsg->hdr.type, imsg->hdr.peerid, imsg->hdr.pid, 268 imsg->hdr.type, imsg->hdr [all...] |
H A D | vioqcow2.c | 671 struct qcheader hdr, basehdr; local 695 l1off = ALIGNSZ(sizeof(hdr), clustersz); 707 memcpy(hdr.magic, VM_MAGIC_QCOW, strlen(VM_MAGIC_QCOW)); 708 hdr.version = htobe32(3); 709 hdr.backingoff = htobe64(base_path ? sizeof(hdr) : 0); 710 hdr.backingsz = htobe32(base_len); 711 hdr.clustershift = htobe32(16); 712 hdr.disksz = htobe64(disksz); 713 hdr [all...] |
/openbsd-current/regress/usr.sbin/ospfd/ |
H A D | Packet.pm | 87 @fields{qw(hdr sha spa tha tpa)} = unpack("a8 a6 a4 a6 a4", $arp); 95 @fields{qw(hrd pro hln pln op)} = unpack("n n C C n", $fields{hdr}); 111 $$fields{hdr} = pack("n n C C n", @$fields{qw(hrd pro hln pln op)}); 112 my $packet = pack("a8 a6 a4 a6 a4", @$fields{qw(hdr sha spa tha tpa)});
|
H A D | PassFd.xs | 34 struct cmsghdr hdr; 65 struct cmsghdr hdr;
|
/openbsd-current/usr.sbin/ospfd/ |
H A D | lsupdate.c | 338 if (lsa_hdr->seq_num == le->le_ref->hdr.seq_num && 339 lsa_hdr->ls_chksum == le->le_ref->hdr.ls_chksum && 340 ntohs(lsa_hdr->age) >= ntohs(le->le_ref->hdr.age)) { 354 if ((lsa_hdr->type == le->le_ref->hdr.type) && 355 (lsa_hdr->ls_id == le->le_ref->hdr.ls_id) && 356 (lsa_hdr->adv_rtr == le->le_ref->hdr.adv_rtr)) 466 lsa_flood(nbr->iface, nbr, &le->le_ref->hdr, 560 lsa_hash_hdr(const struct lsa_hdr *hdr) argument 562 return SipHash24(&lsacachekey, hdr, sizeof(*hdr)); [all...] |
/openbsd-current/usr.sbin/relayd/ |
H A D | control.c | 259 __func__, imsg.hdr.type); 265 switch (imsg.hdr.type) { 273 if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id)) 287 if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id)) 301 if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id)) 315 if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id)) 329 if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id)) 343 if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id)) 392 __func__, imsg.hdr.type); 408 imsg_compose_event(&c->iev, imsg->hdr [all...] |
/openbsd-current/sbin/iked/ |
H A D | ikev2_msg.c | 62 struct ike_header hdr; local 91 if ((size_t)(len - off) <= sizeof(hdr)) 93 memcpy(&hdr, buf + off, sizeof(hdr)); 102 if (hdr.ike_version == IKEV1_VERSION) 113 struct ike_header *hdr; local 115 if (ibuf_size(msg->msg_data) <= sizeof(*hdr)) { 120 hdr = (struct ike_header *)ibuf_data(msg->msg_data); 125 print_spi(betoh64(hdr->ike_ispi), 8), 126 print_spi(betoh64(hdr 276 struct ike_header *hdr; local 374 ikev2_msg_encrypt_prepare(struct iked_sa *sa, struct ikev2_payload *pld, struct ibuf *buf, struct ibuf *e, struct ike_header *hdr, uint8_t firstpayload, int fragmentation) argument 750 struct ike_header *hdr; local 815 struct ike_header *hdr; local 1164 struct ike_header *hdr; local 1277 ikev2_msg_retransmit_response(struct iked *env, struct iked_sa *sa, struct iked_message *msg, struct ike_header *hdr) argument [all...] |
/openbsd-current/sbin/isakmpd/ |
H A D | monitor_fdpass.c | 43 struct cmsghdr hdr; member in union:__anon8188 81 struct cmsghdr hdr; member in union:__anon8189
|
/openbsd-current/sbin/pflogd/ |
H A D | privsep_fdpass.c | 54 struct cmsghdr hdr; member in union:__anon8205 93 struct cmsghdr hdr; member in union:__anon8206
|
/openbsd-current/libexec/ftpd/ |
H A D | monitor_fdpass.c | 36 struct cmsghdr hdr; member in union:__anon8054 74 struct cmsghdr hdr; member in union:__anon8055
|
/openbsd-current/usr.sbin/syslogd/ |
H A D | privsep_fdpass.c | 49 struct cmsghdr hdr; member in union:__anon10819 88 struct cmsghdr hdr; member in union:__anon10820
|
/openbsd-current/usr.sbin/lpd/ |
H A D | logmsg.c | 152 log_fmt_imsgtype(imsg->hdr.type), 153 imsg->hdr.len, imsg->fd);
|
/openbsd-current/sys/dev/pci/drm/i915/gt/uc/ |
H A D | intel_gsc_proxy.c | 52 * hdr: 57 u32 hdr; member in struct:intel_gsc_proxy_header 88 struct intel_gsc_mtl_header *hdr; local 95 hdr = in; 99 in_size = hdr->message_size - sizeof(struct intel_gsc_mtl_header); 161 u32 type = FIELD_GET(GSC_PROXY_TYPE, header->hdr); 162 u32 length = FIELD_GET(GSC_PROXY_PAYLOAD_LENGTH, header->hdr); 198 to_gsc->proxy_header.hdr = 218 if (FIELD_GET(GSC_PROXY_TYPE, to_csme->proxy_header.hdr) ==
|