fix: refactored routing logic (fixes #701)

This commit is contained in:
Simone Margaritelli 2021-04-10 21:55:00 +02:00
parent 88a83192ef
commit 43a93fd866
11 changed files with 202 additions and 80 deletions

17
routing/route.go Normal file
View file

@ -0,0 +1,17 @@
package routing
type RouteType int
const (
IPv4 RouteType = 0
IPv6 RouteType = 1
)
type Route struct {
Type RouteType
Default bool
Device string
Destination string
Gateway string
Flags string
}