worker.h (266777) | worker.h (276605) |
---|---|
1/* 2 * libunbound/worker.h - prototypes for worker methods. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 44 unchanged lines hidden (view full) --- 53 * Worker service routine to send serviced queries to authoritative servers. 54 * @param qname: query name. (host order) 55 * @param qnamelen: length in bytes of qname, including trailing 0. 56 * @param qtype: query type. (host order) 57 * @param qclass: query class. (host order) 58 * @param flags: host order flags word, with opcode and CD bit. 59 * @param dnssec: if set, EDNS record will have DO bit set. 60 * @param want_dnssec: signatures needed. | 1/* 2 * libunbound/worker.h - prototypes for worker methods. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 44 unchanged lines hidden (view full) --- 53 * Worker service routine to send serviced queries to authoritative servers. 54 * @param qname: query name. (host order) 55 * @param qnamelen: length in bytes of qname, including trailing 0. 56 * @param qtype: query type. (host order) 57 * @param qclass: query class. (host order) 58 * @param flags: host order flags word, with opcode and CD bit. 59 * @param dnssec: if set, EDNS record will have DO bit set. 60 * @param want_dnssec: signatures needed. |
61 * @param nocaps: ignore capsforid(if in config), do not perturb qname. |
|
61 * @param addr: where to. 62 * @param addrlen: length of addr. 63 * @param zone: delegation point name. 64 * @param zonelen: length of zone name wireformat dname. 65 * @param q: wich query state to reactivate upon return. 66 * @return: false on failure (memory or socket related). no query was 67 * sent. 68 */ 69struct outbound_entry* libworker_send_query(uint8_t* qname, size_t qnamelen, 70 uint16_t qtype, uint16_t qclass, uint16_t flags, int dnssec, | 62 * @param addr: where to. 63 * @param addrlen: length of addr. 64 * @param zone: delegation point name. 65 * @param zonelen: length of zone name wireformat dname. 66 * @param q: wich query state to reactivate upon return. 67 * @return: false on failure (memory or socket related). no query was 68 * sent. 69 */ 70struct outbound_entry* libworker_send_query(uint8_t* qname, size_t qnamelen, 71 uint16_t qtype, uint16_t qclass, uint16_t flags, int dnssec, |
71 int want_dnssec, struct sockaddr_storage* addr, socklen_t addrlen, 72 uint8_t* zone, size_t zonelen, struct module_qstate* q); | 72 int want_dnssec, int nocaps, struct sockaddr_storage* addr, 73 socklen_t addrlen, uint8_t* zone, size_t zonelen, 74 struct module_qstate* q); |
73 74/** process incoming replies from the network */ 75int libworker_handle_reply(struct comm_point* c, void* arg, int error, 76 struct comm_reply* reply_info); 77 78/** process incoming serviced query replies from the network */ 79int libworker_handle_service_reply(struct comm_point* c, void* arg, int error, 80 struct comm_reply* reply_info); --- 25 unchanged lines hidden (view full) --- 106 * Worker service routine to send serviced queries to authoritative servers. 107 * @param qname: query name. (host order) 108 * @param qnamelen: length in bytes of qname, including trailing 0. 109 * @param qtype: query type. (host order) 110 * @param qclass: query class. (host order) 111 * @param flags: host order flags word, with opcode and CD bit. 112 * @param dnssec: if set, EDNS record will have DO bit set. 113 * @param want_dnssec: signatures needed. | 75 76/** process incoming replies from the network */ 77int libworker_handle_reply(struct comm_point* c, void* arg, int error, 78 struct comm_reply* reply_info); 79 80/** process incoming serviced query replies from the network */ 81int libworker_handle_service_reply(struct comm_point* c, void* arg, int error, 82 struct comm_reply* reply_info); --- 25 unchanged lines hidden (view full) --- 108 * Worker service routine to send serviced queries to authoritative servers. 109 * @param qname: query name. (host order) 110 * @param qnamelen: length in bytes of qname, including trailing 0. 111 * @param qtype: query type. (host order) 112 * @param qclass: query class. (host order) 113 * @param flags: host order flags word, with opcode and CD bit. 114 * @param dnssec: if set, EDNS record will have DO bit set. 115 * @param want_dnssec: signatures needed. |
116 * @param nocaps: ignore capsforid(if in config), do not perturb qname. |
|
114 * @param addr: where to. 115 * @param addrlen: length of addr. 116 * @param zone: wireformat dname of the zone. 117 * @param zonelen: length of zone name. 118 * @param q: wich query state to reactivate upon return. 119 * @return: false on failure (memory or socket related). no query was 120 * sent. 121 */ 122struct outbound_entry* worker_send_query(uint8_t* qname, size_t qnamelen, 123 uint16_t qtype, uint16_t qclass, uint16_t flags, int dnssec, | 117 * @param addr: where to. 118 * @param addrlen: length of addr. 119 * @param zone: wireformat dname of the zone. 120 * @param zonelen: length of zone name. 121 * @param q: wich query state to reactivate upon return. 122 * @return: false on failure (memory or socket related). no query was 123 * sent. 124 */ 125struct outbound_entry* worker_send_query(uint8_t* qname, size_t qnamelen, 126 uint16_t qtype, uint16_t qclass, uint16_t flags, int dnssec, |
124 int want_dnssec, struct sockaddr_storage* addr, socklen_t addrlen, 125 uint8_t* zone, size_t zonelen, struct module_qstate* q); | 127 int want_dnssec, int nocaps, struct sockaddr_storage* addr, 128 socklen_t addrlen, uint8_t* zone, size_t zonelen, 129 struct module_qstate* q); |
126 127/** 128 * process control messages from the main thread. Frees the control 129 * command message. 130 * @param tube: tube control message came on. 131 * @param msg: message contents. Is freed. 132 * @param len: length of message. 133 * @param error: if error (NETEVENT_*) happened. --- 42 unchanged lines hidden --- | 130 131/** 132 * process control messages from the main thread. Frees the control 133 * command message. 134 * @param tube: tube control message came on. 135 * @param msg: message contents. Is freed. 136 * @param len: length of message. 137 * @param error: if error (NETEVENT_*) happened. --- 42 unchanged lines hidden --- |