<br />

Provides facilities for migrating from Netstack2 to Netstack3.

This library provides the protocols necessary to conduct the network stack
migration to the newer version. It will be removed as soon as migration is
completed across all users, and it's not intended to be used beyond that.

At the time of its introduction there aren't platform-wide mechanisms to
achieve this, so this one-off library was created to achieve the migration
goals.

It should not be extended to serve other uses and, if there appears a
central platform-wide mechanism to achieve this before migration is fully
completed it might be deleted before then.
Removed: 33 Added: 14

## **PROTOCOLS**

## Control

*Defined in [fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl;l=39)*

Provides access to controlling netstack migration configuration.

<br />

### SetAutomatedNetstackVersion

Sets the automated target network stack version.

Takes effect on next boot.

- request `version` requested network stack version. If unset, the automated version preference is cleared.

#### Request

| Name | Type |
|---|---|
| `version` | `https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#VersionSetting?` |

#### Response

\<EMPTY\>

### SetUserNetstackVersion

Sets user selection target network stack version.

Takes effect on next boot.

If set, the user netstack version preference always takes precedence
over the automated version selection.

- request `version` requested network stack version. If unset, the user version preference is cleared.

#### Request

| Name | Type |
|---|---|
| `version` | `https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#VersionSetting?` |

#### Response

\<EMPTY\>

## State

*Defined in [fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl;l=67)*

Provides access to reading netstack migration configuration.

<br />

### GetNetstackVersion

Gets the target network stack version.

- response `in_effect_version` the configurations currently in effect.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `in_effect_version` | `https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#InEffectVersion` |

## **STRUCTS**

### InEffectVersion

*Defined in [fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl;l=72)*

| Field | Type | Description | Default |
|---|---|---|---|
| `current_boot` | `https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#NetstackVersion` | The value of the netstack version setting at boot time. This reflects the currently running netstack. | No default |
| `automated` | `https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#VersionSetting?` | The automated netstack version selected. If set and no `user` version is set, it'll be applied on next boot. This reflects the last applied configuration through [Control.SetAutomatedNetstackVersion](https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#Control.SetAutomatedNetstackVersion). | No default |
| `user` | `https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#VersionSetting?` | The user netstack version selected. If set, it'll be applied on next boot. The `user` version always takes predence over the `automated` version. This reflects the last applied configuration through [Control.SetUserNetstackVersion](https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#Control.SetUserNetstackVersion). | No default |

### VersionSetting

*Defined in [fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl;l=33)*

A wrapper type around [NetstackVersion](https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#NetstackVersion) providing optionality for
[Control](https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#Control) methods.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `version` | `https://fuchsia.dev/reference/fidl/fuchsia.net.stackmigrationdeprecated#NetstackVersion` |   | No default |

## **ENUMS**

### NetstackVersion [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.net.stackmigrationdeprecated/stackmigrationdeprecated.fidl;l=25)*

Known Network Stack versions.

<br />

| Name | Value | Description |
|---|---|---|
| ### NETSTACK2 | `1` |   |
| ### NETSTACK3 | `2` |   |