Home | History | Annotate | Download | only in mDNSShared

Lines Matching defs:NATinfo

200 			NATTraversalInfo     NATinfo;
3241 DNSServiceProtocol(request->u.pm.NATinfo.Protocol),
3242 mDNSVal16(request->u.pm.NATinfo.IntPort), mDNSVal16(request->u.pm.ReqExt), request->u.pm.NATinfo.NATLease);
3243 mDNS_StopNATOperation(&mDNSStorage, &request->u.pm.NATinfo);
3271 *data++ = request->u.pm.NATinfo.ExternalAddress.b[0];
3272 *data++ = request->u.pm.NATinfo.ExternalAddress.b[1];
3273 *data++ = request->u.pm.NATinfo.ExternalAddress.b[2];
3274 *data++ = request->u.pm.NATinfo.ExternalAddress.b[3];
3275 *data++ = DNSServiceProtocol(request->u.pm.NATinfo.Protocol);
3276 *data++ = request->u.pm.NATinfo.IntPort.b[0];
3277 *data++ = request->u.pm.NATinfo.IntPort.b[1];
3278 *data++ = request->u.pm.NATinfo.ExternalPort.b[0];
3279 *data++ = request->u.pm.NATinfo.ExternalPort.b[1];
3280 put_uint32(request->u.pm.NATinfo.Lifetime, &data);
3283 DNSServiceProtocol(request->u.pm.NATinfo.Protocol),
3284 mDNSVal16(request->u.pm.NATinfo.IntPort), mDNSVal16(request->u.pm.ReqExt), request->u.pm.NATinfo.NATLease,
3285 &request->u.pm.NATinfo.ExternalAddress, mDNSVal16(request->u.pm.NATinfo.ExternalPort), request->u.pm.NATinfo.Lifetime);
3304 request->u.pm.NATinfo.IntPort.b[0] = *request->msgptr++;
3305 request->u.pm.NATinfo.IntPort.b[1] = *request->msgptr++;
3316 if (!mDNSIPPortIsZero(request->u.pm.NATinfo.IntPort) || !mDNSIPPortIsZero(request->u.pm.ReqExt) || ttl) return(mStatus_BadParamErr);
3320 if (mDNSIPPortIsZero(request->u.pm.NATinfo.IntPort)) return(mStatus_BadParamErr);
3324 request->u.pm.NATinfo.Protocol = !protocol ? NATOp_AddrRequest : (protocol == kDNSServiceProtocol_UDP) ? NATOp_MapUDP : NATOp_MapTCP;
3325 // u.pm.NATinfo.IntPort = already set above
3326 request->u.pm.NATinfo.RequestedPort = request->u.pm.ReqExt;
3327 request->u.pm.NATinfo.NATLease = ttl;
3328 request->u.pm.NATinfo.clientCallback = port_mapping_create_request_callback;
3329 request->u.pm.NATinfo.clientContext = request;
3332 protocol, mDNSVal16(request->u.pm.NATinfo.IntPort), mDNSVal16(request->u.pm.ReqExt), request->u.pm.NATinfo.NATLease);
3333 err = mDNS_StartNATOperation(&mDNSStorage, &request->u.pm.NATinfo);
4168 &req->u.pm.NATinfo.ExternalAddress,
4169 req->u.pm.NATinfo.Protocol & NATOp_MapTCP ? "TCP" : " ",
4170 req->u.pm.NATinfo.Protocol & NATOp_MapUDP ? "UDP" : " ",
4171 mDNSVal16(req->u.pm.NATinfo.IntPort),
4173 mDNSVal16(req->u.pm.NATinfo.ExternalPort),
4174 req->u.pm.NATinfo.NATLease,
4175 req->u.pm.NATinfo.Lifetime);