Lines Matching refs:AddrReply
3291 NATAddrReply *AddrReply = (NATAddrReply *)pkt; in uDNS_ReceiveNATPMPPacket() local
3296 …if (!AddrReply->err && len < 8) { LogMsg("NAT Traversal message too short (%d bytes)", len); retur… in uDNS_ReceiveNATPMPPacket()
3297 …if (AddrReply->vers != NATMAP_VERS) { LogMsg("Received NAT Traversal response with version %d (exp… in uDNS_ReceiveNATPMPPacket()
3300 …AddrReply->err = (mDNSu16) ( (mDNSu16)pkt[2] … in uDNS_ReceiveNATPMPPacket()
3301 …AddrReply->upseconds = (mDNSs32) ((mDNSs32)pkt[4] << 24 | (mDNSs32)pkt[5] << 16 | (mDNSs32)pkt[6] … in uDNS_ReceiveNATPMPPacket()
3303 nat_elapsed = AddrReply->upseconds - m->LastNATupseconds; in uDNS_ReceiveNATPMPPacket()
3305 …eNATPMPPacket %X upseconds %u nat_elapsed %d our_elapsed %d", AddrReply->opcode, AddrReply->upseco… in uDNS_ReceiveNATPMPPacket()
3317 if (AddrReply->upseconds < m->LastNATupseconds || nat_elapsed + 2 < our_elapsed - our_elapsed/8) in uDNS_ReceiveNATPMPPacket()
3320 m->LastNATupseconds = AddrReply->upseconds; in uDNS_ReceiveNATPMPPacket()
3326 if (AddrReply->opcode == NATOp_AddrResponse) in uDNS_ReceiveNATPMPPacket()
3330 mDNS_snprintf(msgbuf, sizeof(msgbuf), "%d", AddrReply->err); in uDNS_ReceiveNATPMPPacket()
3331 …mDNSASLLog((uuid_t *)&m->asl_uuid, "natt.natpmp.AddressRequest", AddrReply->err ? "failure" : "suc… in uDNS_ReceiveNATPMPPacket()
3333 …if (!AddrReply->err && len < sizeof(NATAddrReply)) { LogMsg("NAT Traversal AddrResponse message to… in uDNS_ReceiveNATPMPPacket()
3334 natTraversalHandleAddressReply(m, AddrReply->err, AddrReply->ExtAddr); in uDNS_ReceiveNATPMPPacket()
3336 else if (AddrReply->opcode == NATOp_MapUDPResponse || AddrReply->opcode == NATOp_MapTCPResponse) in uDNS_ReceiveNATPMPPacket()
3338 mDNSu8 Protocol = AddrReply->opcode & 0x7F; in uDNS_ReceiveNATPMPPacket()
3341 …mDNS_snprintf(msgbuf, sizeof(msgbuf), "%s - %d", AddrReply->opcode == NATOp_MapUDPResponse ? "UDP"… in uDNS_ReceiveNATPMPPacket()
3359 …else { LogMsg("Received NAT Traversal response with version unknown opcode 0x%X", AddrReply->opcod… in uDNS_ReceiveNATPMPPacket()