Lines Matching defs:natt_remote
1650 struct sadb_address *natt_local = NULL, *natt_remote = NULL;
2258 if (natt_remote != NULL) {
2276 alloclen = sizeof (*natt_remote) + roundup(sa_len, 8);
2277 natt_remote = malloc(alloclen);
2278 if (natt_remote == NULL)
2279 Bail("malloc(natt_remote)");
2281 natt_remote->sadb_address_len = SADB_8TO64(alloclen);
2282 natt_remote->sadb_address_exttype =
2284 natt_remote->sadb_address_reserved = 0;
2285 natt_remote->sadb_address_prefixlen = 0;
2286 natt_remote->sadb_address_proto = 0;
2292 sin6 = (struct sockaddr_in6 *)(natt_remote + 1);
2303 free(natt_remote);
2304 natt_remote = NULL;
2660 if (natt_rport != 0 && natt_remote == NULL) {
2662 SADB_X_EXT_ADDRESS_NATT_REM, natt_remote,
2669 } else if (natt_local != NULL || natt_remote != NULL) {
2746 if (natt_remote != NULL)
2855 if (natt_remote == NULL && natt_local == NULL) {
2861 if (natt_remote != NULL) {
2862 bcopy(natt_remote, nexthdr,
2863 SADB_64TO8(natt_remote->sadb_address_len));
2864 free(natt_remote);
2865 natt_remote = (struct sadb_address *)nexthdr;
2866 nexthdr += natt_remote->sadb_address_len;
2867 ((struct sockaddr_in6 *)(natt_remote + 1))->sin6_port =