Categorygithub.com/usbarmory/imx-enet
modulepackage
0.0.0-20240909221101-ae8625bf5b84
Repository: https://github.com/usbarmory/imx-enet.git
Documentation: pkg.go.dev

# README

i.MX Ethernet driver

This Go package implements TCP/IP connectivity through Ethernet (ENET) on NXP i.MX SoCs, to be used with GOOS=tamago GOARCH=arm as supported by the TamaGo framework for bare metal Go on ARM SoCs.

The package supports TCP/IP networking through gVisor (go branch) tcpip stack pure Go implementation.

The interface TCP/IP stack can be attached to the Go runtime by setting net.SocketFunc to the interface Socket function:

iface, _ := imxenet.Init(usbarmory.ENET2, "10.0.0.1", "255.255.255.0", "1a:55:89:a2:69:41", "10.0.0.2", 1)
net.SocketFunc = iface.Socket

See tamago-example for a full integration example.

Authors

Andrea Barisani
[email protected] | [email protected]

Andrej Rosano
[email protected] | [email protected]

Documentation

The package API documentation can be found on pkg.go.dev.

For more information about TamaGo see its repository and project wiki.

License

tamago | https://github.com/usbarmory/imx-enet
Copyright (c) WithSecure Corporation

These source files are distributed under the BSD-style license found in the LICENSE file.

# Variables

DefaultStackOptions represents the default gVisor Stack configuration.
MTU represents the Ethernet Maximum Transmission Unit.
NICID represents the default gVisor NIC identifier.

# Structs

Interface represents an Ethernet interface instance.
NIC represents an virtual Ethernet instance.