/freebsd-11-stable/contrib/amd/amd/ |
H A D | ops_nfs.c | 180 got_nfs_fh_mount(voidp pkt, int len, struct sockaddr_in *sa, struct sockaddr_in *ia, opaque_t arg, int done) argument 199 fp->fh_error = pickup_rpc_reply(pkt, len, (voidp) &res3, 214 fp->fh_error = pickup_rpc_reply(pkt, len, (voidp) &res, 248 got_nfs_fh_webnfs(voidp pkt, int len, struct sockaddr_in *sa, struct sockaddr_in *ia, opaque_t arg, int done) argument 267 fp->fh_error = pickup_rpc_reply(pkt, len, (voidp) &res3, 278 fp->fh_error = pickup_rpc_reply(pkt, len, (voidp) &res,
|
H A D | rpc_fwd.c | 224 fwd_packet(int type_id, char *pkt, int len, struct sockaddr_in *fwdto, struct sockaddr_in *replyto, opaque_t cb_arg, fwd_fun cb) argument 278 pkt_int = (u_int *) pkt; 322 ud.udata.buf = pkt; 329 if (sendto(fwd_sock, (char *) pkt, len, 0, 356 u_int pkt[MAX_PACKET_SIZE / sizeof(u_int) + 1]; local 383 ud.udata.buf = (char *) pkt; 400 (char *) pkt, 428 pkt_int = (u_int *) pkt; 465 (*p->rf_fwd) ((voidp) pkt, rc, &src_addr, &p->rf_sin, p->rf_ptr, TRUE);
|
H A D | srvr_nfs.c | 184 got_portmap(voidp pkt, int len, struct sockaddr_in *sa, struct sockaddr_in *ia, voidp idv, int done) argument 198 int error = done ? pickup_rpc_reply(pkt, len, (voidp) &port, (XDRPROC_T_TYPE) xdr_u_long) : -1; 369 nfs_keepalive_callback(voidp pkt, int len, struct sockaddr_in *sp, struct sockaddr_in *tsp, voidp idv, int done) argument
|
/freebsd-11-stable/contrib/amd/libamu/ |
H A D | misc_rpc.c | 79 pickup_rpc_reply(voidp pkt, int len, voidp where, XDRPROC_T_TYPE where_xdr) argument 94 xdrmem_create(&reply_xdr, pkt, len, XDR_DECODE);
|
/freebsd-11-stable/contrib/bsnmp/snmp_ntp/ |
H A D | snmp_ntp.c | 290 dump_packet(const u_char *pkt, size_t ret) argument 298 sprintf(buf + strlen(buf), " %02x", pkt[i + j]); 377 u_char pkt[NTPC_MAX + 1]; local 427 ret = recv(ntpd_sock, pkt, sizeof(pkt), 0); 436 dump_packet(pkt, (size_t)ret); 439 ptr = pkt; 455 syslog(LOG_ERR, "error response: %.*s", (int)z, pkt + 12);
|
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | remote.c | 1162 static char *pack_hex_byte (char *pkt, int /*unsigned char */ byte); 1172 static char *pack_threadid (char *pkt, threadref * id); 1184 static char *pack_threadinfo_request (char *pkt, int mode, threadref * id); 1186 static int remote_unpack_thread_info_response (char *pkt, 1195 static char *pack_threadlist_request (char *pkt, int startflag, 1199 static int parse_threadlist_response (char *pkt, 1303 pack_hex_byte (char *pkt, int byte) 1305 *pkt++ = hexchars[(byte >> 4) & 0xf]; 1306 *pkt++ = hexchars[(byte & 0xf)]; 1307 return pkt; 1299 pack_hex_byte(char *pkt, int byte) argument 1364 pack_threadid(char *pkt, threadref *id) argument 1473 pack_threadinfo_request(char *pkt, int mode, threadref *id) argument 1496 remote_unpack_thread_info_response(char *pkt, threadref *expectedref, struct gdb_ext_thread_info *info) argument 1605 pack_threadlist_request(char *pkt, int startflag, int threadcount, threadref *nextthread) argument 1620 parse_threadlist_response(char *pkt, int result_limit, threadref *original_echo, threadref *resultlist, int *doneflag) argument [all...] |
/freebsd-11-stable/contrib/ipfilter/ipsend/ |
H A D | snit.c | 117 int sendip(fd, pkt, len) 119 char *pkt; 133 bcopy(pkt, sa->sa_data, sizeof(sa->sa_data)); 134 pkt += sizeof(sa->sa_data); 144 dp->buf = pkt;
|
H A D | sockraw.c | 70 int sendip(int fd, char *pkt, int len) argument 75 eh = (struct ether_header *)pkt; 78 pkt += 14; 80 bcopy(pkt + 12, (char *)&sin.sin_addr, 4); 82 if (sendto(fd, pkt, len, 0, &sin, sizeof(sin)) == -1)
|
/freebsd-11-stable/contrib/ldns-host/ |
H A D | ldns-host.c | 117 ldns_pkt_push_rr_soa(ldns_pkt *pkt, ldns_pkt_section sec, argument 150 !ldns_pkt_push_rr(pkt, sec, rr)) 325 ldns_pkt_filter_answer(ldns_pkt *pkt, ldns_rr_type type) { argument 331 rrlist = ldns_pkt_answer(pkt); 486 print_pkt_verbose(ldns_pkt *pkt) { argument 490 print_opcode(ldns_pkt_get_opcode(pkt)); 492 print_rcode(ldns_pkt_get_rcode(pkt)); 493 printf(", id: %u\n", ldns_pkt_id(pkt)); 495 if (ldns_pkt_qr(pkt)) printf(" qr"), got_flags = 1; 496 if (ldns_pkt_aa(pkt)) print 543 print_pkt_short(ldns_pkt *pkt, bool print_rr_server) argument 558 print_received_line(ldns_resolver *res, ldns_pkt *pkt) argument 744 query(ldns_resolver *res, ldns_rdf *domain, ldns_pkt **pkt, bool close_tcp) argument 786 search(ldns_resolver *res, ldns_rdf *domain, ldns_pkt **pkt, bool absolute, bool close_tcp) argument 815 report(ldns_resolver *res, ldns_rdf *domain, ldns_pkt *pkt) argument 851 ldns_pkt *pkt; local 861 ldns_pkt *pkt; local 872 ldns_pkt *pkt; local 885 ldns_pkt *pkt, *nextpkt; local 947 ldns_pkt *pkt; local [all...] |
/freebsd-11-stable/contrib/ldns/ |
H A D | dnssec.c | 198 ldns_dnssec_pkt_has_rrsigs(const ldns_pkt *pkt) argument 201 for (i = 0; i < ldns_pkt_ancount(pkt); i++) { 202 if (ldns_rr_get_type(ldns_rr_list_rr(ldns_pkt_answer(pkt), i)) == 207 for (i = 0; i < ldns_pkt_nscount(pkt); i++) { 208 if (ldns_rr_get_type(ldns_rr_list_rr(ldns_pkt_authority(pkt), i)) == 217 ldns_dnssec_pkt_get_rrsigs_for_name_and_type(const ldns_pkt *pkt, argument 226 sigs = ldns_pkt_rr_list_by_name_and_type(pkt, 244 ldns_dnssec_pkt_get_rrsigs_for_type(const ldns_pkt *pkt, ldns_rr_type type) argument 251 sigs = ldns_pkt_rr_list_by_type(pkt,
|
H A D | dnssec_verify.c | 101 const ldns_pkt *pkt, 113 pkt, 143 pkt, 273 const ldns_pkt *pkt, 291 assert(pkt != NULL); 293 if (!ldns_dnssec_pkt_has_rrsigs(pkt)) { 305 pkt, 307 new_chain->packet_rcode = ldns_pkt_get_rcode(pkt); 309 if (ldns_pkt_ancount(pkt) == 0) { 316 /* hmm, no data, do we have denial? only works if pkt wa 99 ldns_dnssec_build_data_chain_dnskey(ldns_resolver *res, uint16_t qflags, const ldns_pkt *pkt, ldns_rr_list *signatures, ldns_dnssec_data_chain *new_chain, ldns_rdf *key_name, ldns_rr_class c) argument 270 ldns_dnssec_build_data_chain(ldns_resolver *res, uint16_t qflags, const ldns_rr_list *rrset, const ldns_pkt *pkt, ldns_rr *orig_rr) argument [all...] |
H A D | higher.c | 27 ldns_pkt *pkt; local 70 pkt = ldns_resolver_query(res, name, LDNS_RR_TYPE_AAAA, c, flags | LDNS_RD); 71 if (pkt) { 73 aaaa = ldns_pkt_rr_list_by_type(pkt, LDNS_RR_TYPE_AAAA, 75 ldns_pkt_free(pkt); 78 pkt = ldns_resolver_query(res, name, LDNS_RR_TYPE_A, c, flags | LDNS_RD); 79 if (pkt) { 81 a = ldns_pkt_rr_list_by_type(pkt, LDNS_RR_TYPE_A, LDNS_SECTION_ANSWER); 82 ldns_pkt_free(pkt); 110 ldns_pkt *pkt; local [all...] |
H A D | host2str.c | 1710 ldns_pktheader2buffer_str(ldns_buffer *output, const ldns_pkt *pkt) argument 1713 (int) ldns_pkt_get_opcode(pkt)); 1715 (int) ldns_pkt_get_rcode(pkt)); 1722 ldns_pkt_get_opcode(pkt)); 1727 ldns_buffer_printf(output, "rcode: ?? (%u), ", ldns_pkt_get_rcode(pkt)); 1729 ldns_buffer_printf(output, "id: %d\n", ldns_pkt_id(pkt)); 1732 if (ldns_pkt_qr(pkt)) { 1735 if (ldns_pkt_aa(pkt)) { 1738 if (ldns_pkt_tc(pkt)) { 1741 if (ldns_pkt_rd(pkt)) { 1762 ldns_pkt2buffer_str_fmt(ldns_buffer *output, const ldns_output_format *fmt, const ldns_pkt *pkt) argument 1883 ldns_pkt2buffer_str(ldns_buffer *output, const ldns_pkt *pkt) argument 2412 ldns_pkt2str_fmt(const ldns_output_format *fmt, const ldns_pkt *pkt) argument 2431 ldns_pkt2str(const ldns_pkt *pkt) argument 2520 ldns_pkt_print_fmt(FILE *output, const ldns_output_format *fmt, const ldns_pkt *pkt) argument 2533 ldns_pkt_print(FILE *output, const ldns_pkt *pkt) argument [all...] |
/freebsd-11-stable/contrib/ldns/drill/ |
H A D | chasetrace.c | 253 ldns_pkt *pkt; local 263 pkt = ldns_pkt_clone(pkt_o); 266 ldns_pkt_free(pkt); 283 if (pkt) { 284 rrset = ldns_pkt_rr_list_by_name_and_type(pkt, 291 rrset = ldns_pkt_rr_list_by_name_and_type(pkt, 300 rrset = ldns_pkt_rr_list_by_name_and_type(pkt, 307 rrset = ldns_pkt_rr_list_by_name_and_type(pkt, 325 ldns_pkt_free(pkt); 326 pkt [all...] |
H A D | dnssec.c | 176 ldns_verify_denial(ldns_pkt *pkt, ldns_rdf *name, ldns_rr_type type, ldns_rr_list **nsec_rrs, ldns_rr_list **nsec_rr_sigs) argument 186 ldns_pkt_print(stdout, pkt); 191 nsecs = ldns_pkt_rr_list_by_type(pkt, LDNS_RR_TYPE_NSEC, LDNS_SECTION_ANY_NOQUESTION); 219 (void) get_dnssec_rr(pkt, ldns_rr_owner(ldns_rr_list_rr(nsecs, nsec_i)), LDNS_RR_TYPE_NSEC, nsec_rrs, nsec_rr_sigs); 229 (void) get_dnssec_rr(pkt, ldns_rr_owner(ldns_rr_list_rr(nsecs, nsec_i)), LDNS_RR_TYPE_NSEC, nsec_rrs, nsec_rr_sigs); 238 } else if( (nsecs = ldns_pkt_rr_list_by_type(pkt, LDNS_RR_TYPE_NSEC3, LDNS_SECTION_ANY_NOQUESTION)) ) { 239 ldns_rr_list* sigs = ldns_pkt_rr_list_by_type(pkt, LDNS_RR_TYPE_RRSIG, LDNS_SECTION_ANY_NOQUESTION); 266 /* result = ldns_dnssec_verify_denial_nsec3(q, nsecs, sigs, ldns_pkt_get_rcode(pkt), type, ldns_pkt_ancount(pkt) == 0); */ 267 result = ldns_dnssec_verify_denial_nsec3_match(q, nsecs, sigs, ldns_pkt_get_rcode(pkt), typ [all...] |
H A D | drill.h | 78 /* verifies denial of existence of *name in *pkt (must contain NSEC or NSEC3 records 82 ldns_status ldns_verify_denial(ldns_pkt *pkt, 93 void dump_hex(const ldns_pkt *pkt, const char *file);
|
H A D | work.c | 195 ldns_pkt *pkt = NULL; local 204 status = ldns_wire2pkt(&pkt, wire, wiresize); 210 return pkt; 219 dump_hex(const ldns_pkt *pkt, const char *filename) argument 233 status = ldns_pkt2wire(&wire, pkt, &size);
|
/freebsd-11-stable/contrib/ldns/ldns/ |
H A D | dnssec.h | 101 ldns_dnssec_pkt_has_rrsigs(const ldns_pkt *pkt); 107 ldns_rr_list *ldns_dnssec_pkt_get_rrsigs_for_name_and_type(const ldns_pkt *pkt, ldns_rdf *name, ldns_rr_type type); 112 ldns_rr_list *ldns_dnssec_pkt_get_rrsigs_for_type(const ldns_pkt *pkt, ldns_rr_type type);
|
H A D | dnssec_verify.h | 80 * \param[in] *pkt optional, can contain the original packet 89 const ldns_pkt *pkt,
|
H A D | host2str.h | 511 * \param[in] pkt the pointer to the packet to convert 514 ldns_status ldns_pkt2buffer_str(ldns_buffer *output, const ldns_pkt *pkt); 522 * \param[in] pkt the pointer to the packet to convert 526 const ldns_output_format *fmt, const ldns_pkt *pkt); 675 * \param[in] pkt The rdata field to convert 678 char *ldns_pkt2str(const ldns_pkt *pkt); 686 * \param[in] pkt The rdata field to convert 689 char *ldns_pkt2str_fmt(const ldns_output_format *fmt, const ldns_pkt *pkt); 781 * \param[in] pkt the packet to print 784 void ldns_pkt_print(FILE *output, const ldns_pkt *pkt); [all...] |
H A D | host2wire.h | 112 * \param[in] *pkt packet to convert 115 ldns_status ldns_pkt2buffer_wire(ldns_buffer *output, const ldns_pkt *pkt);
|
H A D | net.h | 83 * \param[out] pkt packet received from the nameserver 88 ldns_status ldns_send(ldns_pkt **pkt, ldns_resolver *r, const ldns_pkt *query_pkt); 94 * \param[out] pkt packet received from the nameserver 100 ldns_status ldns_send_buffer(ldns_pkt **pkt, ldns_resolver *r, ldns_buffer *qb, ldns_rdf *tsig_mac);
|
H A D | packet.h | 44 /* opcodes for pkt's */ 511 * \param[in] pkt the packet to examine 515 bool ldns_pkt_rr(ldns_pkt *pkt, ldns_pkt_section sec, ldns_rr *rr); 520 * \param[in] pkt the packet to operate on 524 bool ldns_pkt_set_flags(ldns_pkt *pkt, uint16_t flags); 791 * \return ldns_pkt* a pointer to the new pkt 802 * \return ldns_pkt* a pointer to the new pkt 809 * \param[in] pkt the packet to clone 812 ldns_pkt *ldns_pkt_clone(ldns_pkt *pkt); 853 * \param[in] pkt packe [all...] |
H A D | resolver.h | 124 keep the current pkt */ 609 * \param[out] pkt a packet with the reply from the nameserver 618 ldns_status ldns_resolver_search_status(ldns_pkt** pkt, ldns_resolver *r, const ldns_rdf *rdf, ldns_rr_type t, ldns_rr_class c, uint16_t flags); 656 * \param[out] pkt a packet with the reply from the nameserver 666 ldns_status ldns_resolver_query_status(ldns_pkt** pkt, ldns_resolver *r, const ldns_rdf *name, ldns_rr_type t, ldns_rr_class c, uint16_t flags);
|
H A D | tsig.h | 43 * \param[in] pkt the packet to verify 51 bool ldns_pkt_tsig_verify(ldns_pkt *pkt, uint8_t *wire, size_t wire_size, const char *key_name, const char *key_data, ldns_rdf *mac); 56 * \param[in] pkt the packet to verify 66 bool ldns_pkt_tsig_verify_next(ldns_pkt *pkt, uint8_t *wire, size_t wire_size, const char *key_name, const char *key_data, ldns_rdf *mac, 71 * \param[in] pkt the packet to sign 79 ldns_status ldns_pkt_tsig_sign(ldns_pkt *pkt, const char *key_name, const char *key_data, uint16_t fudge, 84 * \param[in] pkt the packet to sign 94 ldns_status ldns_pkt_tsig_sign_next(ldns_pkt *pkt, const char *key_name, const char *key_data, uint16_t fudge,
|