Lines Matching refs:natt_remote
1754 struct sadb_address *natt_local = NULL, *natt_remote = NULL; in doaddup() local
2375 if (natt_remote != NULL) { in doaddup()
2393 alloclen = sizeof (*natt_remote) + roundup(sa_len, 8); in doaddup()
2394 natt_remote = malloc(alloclen); in doaddup()
2395 if (natt_remote == NULL) in doaddup()
2398 natt_remote->sadb_address_len = SADB_8TO64(alloclen); in doaddup()
2399 natt_remote->sadb_address_exttype = in doaddup()
2401 natt_remote->sadb_address_reserved = 0; in doaddup()
2402 natt_remote->sadb_address_prefixlen = 0; in doaddup()
2403 natt_remote->sadb_address_proto = 0; in doaddup()
2409 sin6 = (struct sockaddr_in6 *)(natt_remote + 1); in doaddup()
2420 free(natt_remote); in doaddup()
2421 natt_remote = NULL; in doaddup()
2800 if (natt_rport != 0 && natt_remote == NULL) { in doaddup()
2802 SADB_X_EXT_ADDRESS_NATT_REM, natt_remote, in doaddup()
2809 } else if (natt_local != NULL || natt_remote != NULL) { in doaddup()
2886 if (natt_remote != NULL) in doaddup()
2995 if (natt_remote == NULL && natt_local == NULL) { in doaddup()
3001 if (natt_remote != NULL) { in doaddup()
3002 bcopy(natt_remote, nexthdr, in doaddup()
3003 SADB_64TO8(natt_remote->sadb_address_len)); in doaddup()
3004 free(natt_remote); in doaddup()
3005 natt_remote = (struct sadb_address *)nexthdr; in doaddup()
3006 nexthdr += natt_remote->sadb_address_len; in doaddup()
3007 ((struct sockaddr_in6 *)(natt_remote + 1))->sin6_port = in doaddup()