summaryrefslogtreecommitdiffhomepage
path: root/table/temporary_structs.go
blob: a561aa72014d609b5a4d9b934a8ff535ff6d4581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// core.go
package table

import (
	"github.com/osrg/gobgp/packet"
	"net"
)

type Peer struct {
	//need to define a structure
	RemoteAs      uint32
	VersionNum    int
	RemoteAddress net.IP
	protocol      *BgpProtocol
}
type SentRoute struct {
	path Path
	peer *Peer
}
type BgpProtocol struct {
	//need to define a structure
	recvOpenMsg *bgp.BGPOpen
	sentOpenMsg *bgp.BGPOpen
}