github.com/kata-containers/runtime@v0.0.0-20210505125100-04f29832a923/virtcontainers/pkg/types/types.go (about) 1 // Copyright (c) 2018 Intel Corporation. 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 // 5 6 package types 7 8 // IPAddress describes an IP address. 9 type IPAddress struct { 10 Family int 11 Address string 12 Mask string 13 } 14 15 // Interface describes a network interface. 16 type Interface struct { 17 Device string 18 Name string 19 IPAddresses []*IPAddress 20 Mtu uint64 21 RawFlags uint32 22 HwAddr string 23 // PCI path for the interface 24 PciPath PciPath 25 // LinkType defines the type of interface described by this structure. 26 // The expected values are the one that are defined by the netlink 27 // library, regarding each type of link. Here is a non exhaustive 28 // list: "veth", "macvtap", "vlan", "macvlan", "tap", ... 29 LinkType string 30 } 31 32 // Route describes a network route. 33 type Route struct { 34 Dest string 35 Gateway string 36 Device string 37 Source string 38 Scope uint32 39 } 40 41 type ARPNeighbor struct { 42 ToIPAddress *IPAddress 43 Device string 44 LLAddr string 45 State int 46 Flags int 47 }