Lines Matching defs:NATinfo
221 NATTraversalInfo NATinfo;
4222 DNSServiceProtocol(request->u.pm.NATinfo.Protocol),
4223 mDNSVal16(request->u.pm.NATinfo.IntPort), mDNSVal16(request->u.pm.ReqExt), request->u.pm.NATinfo.NATLease,
4225 mDNS_StopNATOperation(&mDNSStorage, &request->u.pm.NATinfo);
4253 *data++ = request->u.pm.NATinfo.ExternalAddress.b[0];
4254 *data++ = request->u.pm.NATinfo.ExternalAddress.b[1];
4255 *data++ = request->u.pm.NATinfo.ExternalAddress.b[2];
4256 *data++ = request->u.pm.NATinfo.ExternalAddress.b[3];
4257 *data++ = DNSServiceProtocol(request->u.pm.NATinfo.Protocol);
4258 *data++ = request->u.pm.NATinfo.IntPort.b[0];
4259 *data++ = request->u.pm.NATinfo.IntPort.b[1];
4260 *data++ = request->u.pm.NATinfo.ExternalPort.b[0];
4261 *data++ = request->u.pm.NATinfo.ExternalPort.b[1];
4262 put_uint32(request->u.pm.NATinfo.Lifetime, &data);
4265 DNSServiceProtocol(request->u.pm.NATinfo.Protocol),
4266 mDNSVal16(request->u.pm.NATinfo.IntPort), mDNSVal16(request->u.pm.ReqExt), request->u.pm.NATinfo.NATLease,
4267 &request->u.pm.NATinfo.ExternalAddress, mDNSVal16(request->u.pm.NATinfo.ExternalPort), request->u.pm.NATinfo.Lifetime);
4286 request->u.pm.NATinfo.IntPort.b[0] = *request->msgptr++;
4287 request->u.pm.NATinfo.IntPort.b[1] = *request->msgptr++;
4298 if (!mDNSIPPortIsZero(request->u.pm.NATinfo.IntPort) || !mDNSIPPortIsZero(request->u.pm.ReqExt) || ttl) return(mStatus_BadParamErr);
4302 if (mDNSIPPortIsZero(request->u.pm.NATinfo.IntPort)) return(mStatus_BadParamErr);
4308 request->u.pm.NATinfo.Protocol = !protocol ? NATOp_AddrRequest : (protocol == kDNSServiceProtocol_UDP) ? NATOp_MapUDP : NATOp_MapTCP;
4309 // u.pm.NATinfo.IntPort = already set above
4310 request->u.pm.NATinfo.RequestedPort = request->u.pm.ReqExt;
4311 request->u.pm.NATinfo.NATLease = ttl;
4312 request->u.pm.NATinfo.clientCallback = port_mapping_create_request_callback;
4313 request->u.pm.NATinfo.clientContext = request;
4316 protocol, mDNSVal16(request->u.pm.NATinfo.IntPort), mDNSVal16(request->u.pm.ReqExt), request->u.pm.NATinfo.NATLease,
4318 err = mDNS_StartNATOperation(&mDNSStorage, &request->u.pm.NATinfo);
5335 req->u.pm.NATinfo.Protocol & NATOp_MapTCP ? "TCP" : " ",
5336 req->u.pm.NATinfo.Protocol & NATOp_MapUDP ? "UDP" : " ",
5337 mDNSVal16(req->u.pm.NATinfo.IntPort),
5339 &req->u.pm.NATinfo.ExternalAddress,
5340 mDNSVal16(req->u.pm.NATinfo.ExternalPort),
5341 req->u.pm.NATinfo.NATLease,
5342 req->u.pm.NATinfo.Lifetime,