Lines Matching defs:rrecp
86 ns_updrec *rrecp;
121 for (rrecp = rrecp_start; rrecp; rrecp = NEXT(rrecp, r_glink)) {
123 section = rrecp->r_section;
130 rtype = rrecp->r_type;
131 rclass = rrecp->r_class;
132 rttl = rrecp->r_ttl;
136 switch (rrecp->r_opcode) {
140 rrecp->r_size = 0;
145 rrecp->r_size = 0;
149 rrecp->r_size = 0;
152 if (rrecp->r_size == 0)
158 rrecp->r_opcode);
163 switch (rrecp->r_opcode) {
165 rclass = rrecp->r_size == 0 ? C_ANY : C_NONE;
172 rrecp->r_opcode);
182 if ((n = dn_comp(rrecp->r_dname, cp, buflen, dnptrs,
190 if (numrrs != 1 || rrecp->r_type != T_SOA)
198 if (rrecp->r_size == 0) {
206 startp = rrecp->r_data;
207 endp = startp + rrecp->r_size - 1;
209 switch (rrecp->r_type) {
248 if (rrecp->r_type == T_SOA) {
920 ns_updrec *rrecp = (ns_updrec *)calloc(1, sizeof(ns_updrec));
922 if (!rrecp || !(rrecp->r_dname = strdup(dname))) {
923 if (rrecp)
924 free((char *)rrecp);
927 INIT_LINK(rrecp, r_link);
928 INIT_LINK(rrecp, r_glink);
929 rrecp->r_class = (ns_class)class;
930 rrecp->r_type = (ns_type)type;
931 rrecp->r_ttl = ttl;
932 rrecp->r_section = (ns_sect)section;
933 return (rrecp);
940 res_freeupdrec(ns_updrec *rrecp) {
942 if (rrecp->r_dname != NULL)
943 free(rrecp->r_dname);
944 free(rrecp);