Lines Matching defs:req
493 static NATAddrRequest req = {NATMAP_VERS, NATOp_AddrRequest};
494 static mDNSu8* start = (mDNSu8*)&req;
601 PCPMapRequest req;
602 mDNSu8* start = (mDNSu8*)&req;
603 mDNSu8* end = start + sizeof(req);
604 mDNSu8* p = (mDNSu8*)&req.lifetime;
606 req.version = PCP_VERS;
607 req.opCode = PCPOp_Map;
608 req.reserved = zeroID;
615 mDNSAddrMapIPv4toIPv6(&m->AdvertisedV4.ip.v4, &req.clientAddr);
617 req.nonce[0] = m->PCPNonce[0];
618 req.nonce[1] = m->PCPNonce[1];
619 req.nonce[2] = m->PCPNonce[2];
621 req.protocol = (info->Protocol == NATOp_MapUDP ? PCPProto_UDP : PCPProto_TCP);
623 req.reservedMapOp[0] = 0;
624 req.reservedMapOp[1] = 0;
625 req.reservedMapOp[2] = 0;
628 req.intPort = info->IntPort;
630 req.intPort = DiscardPort;
631 req.extPort = info->RequestedPort;
635 mDNSAddrMapIPv4toIPv6(&info->NewAddress, &req.extAddress);