Displaying 1 result from an estimated 1 matches for "anslen".
Did you mean:
ansley
2009 Jun 29
2
openbsd-compat/getrrsetbyname.c: answer buffer size too large for EDNS0 and glibc
...E 1024*64
[...]
getrrsetbyname()
[...]
u_char answer[ANSWER_BUFFER_SIZE];
[...]
length = res_query(hostname, (signed int) rdclass, (signed int)
rdtype,
answer, sizeof(answer));
[...]
In the glibc stub-resolver, "sizeof(answer)" is eventually passed on as
"anslen" to __res_nopt() in resolv/res_mkquery.c:
[...]
NS_PUT16(anslen & 0xffff, cp); /* CLASS = UDP payload size */
and sent out to the recursor:
| IP 127.0.0.1.44138 > 127.0.0.1.53: 31454+ [1au] SSHFP?
orbit.attraktor.org. ar: . OPT UDPsize=0 (48)
| IP 127.0.0.1.53 > 127.0.0.1....