Has this API been deprecated … ?
This API has not been deprecated, although it’s not exactly recommended either.
As to what’s going wrong, I’m not sure. Consider the following code:
const uint8_t packet[] = {
0x09, 0x1E, 0x81, 0xA0, 0x00, 0x01, 0x00, 0x01,
0x00, 0x00, 0x00, 0x01, 0x07, 0x65, 0x78, 0x61,
0x6D, 0x70, 0x6C, 0x65, 0x03, 0x63, 0x6F, 0x6D,
0x00, 0x00, 0x01, 0x00, 0x01, 0xC0, 0x0C, 0x00,
0x01, 0x00, 0x01, 0x00, 0x01, 0x41, 0xCD, 0x00,
0x04, 0x5D, 0xB8, 0xD8, 0x22, 0x00, 0x00, 0x29,
0x04, 0xD0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
dns_reply_t * reply = dns_parse_packet( (const char *) packet, sizeof(packet));
if (reply != NULL) {
NSLog(@"reply: %p", reply);
dns_free_reply(reply);
}
It works on the iOS 15.2 simulator but fails on the iOS 15.5 one (and on real hardware running iOS 15.5). Weird.
Please file a bug about this and then post your bug number here.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"