# TunnelModeChildSessionParams.ConfigRequestIpv6Address

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# TunnelModeChildSessionParams.ConfigRequestIpv6Address

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/TunnelModeChildSessionParams.ConfigRequestIpv6Address "View this page in Kotlin")\|Java

`
public
static


interface
TunnelModeChildSessionParams.ConfigRequestIpv6Address
`  
`


implements

`[TunnelModeChildSessionParams.TunnelModeChildConfigRequest](https://developer.android.com/reference/android/net/ipsec/ike/TunnelModeChildSessionParams.TunnelModeChildConfigRequest)`


`

|-----------------------------------------------------------------------------|
| android.net.ipsec.ike.TunnelModeChildSessionParams.ConfigRequestIpv6Address |

<br />

*** ** * ** ***

Represents an IPv6 Internal Address request

## Summary

|                                                                                                                                       ### Public methods                                                                                                                                        ||
|-------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[Inet6Address](https://developer.android.com/reference/java/net/Inet6Address) | ` `[getAddress](https://developer.android.com/reference/android/net/ipsec/ike/TunnelModeChildSessionParams.ConfigRequestIpv6Address#getAddress())`() ` Retrieves the requested internal IPv6 address |
| ` abstract int`                                                                           | ` `[getPrefixLength](https://developer.android.com/reference/android/net/ipsec/ike/TunnelModeChildSessionParams.ConfigRequestIpv6Address#getPrefixLength())`() ` Retrieves the prefix length         |

## Public methods

### getAddress

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract Inet6Address getAddress ()
```

Retrieves the requested internal IPv6 address

<br />

|                                                                                 Returns                                                                                 ||
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|
| [Inet6Address](https://developer.android.com/reference/java/net/Inet6Address) | The requested IPv6 address, or null if no specific internal address was requested <br /> |

### getPrefixLength

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract int getPrefixLength ()
```

Retrieves the prefix length

<br />

|                                          Returns                                           ||
|-------|-------------------------------------------------------------------------------------|
| `int` | The requested prefix length, or -1 if no specific IPv6 address was requested <br /> |