mirror of
https://github.com/bettercap/bettercap
synced 2025-07-14 17:13:39 -07:00
fix: refactored routing logic (fixes #701)
This commit is contained in:
parent
88a83192ef
commit
43a93fd866
11 changed files with 202 additions and 80 deletions
17
routing/route.go
Normal file
17
routing/route.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue