# Generic Routing Encapsulation (GRE)
Right now this exists only for GRETAP [sessions](#session)
## Index
### Classes
| [Gre](Gre.md) | GRE Session |
### Functions
| [session](#session) | [Gre](../gre/Gre.md) | Create a GRETAP session |
## session
```resynth
resynth fn session (
cl: Ip4,
sv: Ip4,
ethertype: u16,
raw: bool = false,
) -> Gre;
```
Create a GRETAP session
### Parameters
| `cl` | `Ip4` | Source IP address |
| `sv` | `Ip4` | Destination IP address |
| `ethertype` | `u16` | EtherType of the encapsulated payload |
| `raw` | `bool` | Enable raw mode; disables automatic IP/GRE header computation _(default: `false`)_ |
### Returns
| [Gre](../gre/Gre.md) |