crip/main.go
Jim Colderwood 36b6ad3b33 Clean up
2024-04-25 14:19:28 +01:00

25 lines
344 B
Go

package main
import (
"log"
"github.com/crip/config"
"github.com/crip/ripv2"
"github.com/crip/rtable"
)
func callback(r *ripv2.Routes) {
rtable.Pass(r)
}
func main() {
conf := config.Read("config.json")
rip := ripv2.New()
routes := ripv2.Init()
log.Println("Running")
routes.Timer()
rip.Run(conf, callback)
/* NOT REACHED */
}