diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2014-12-05 11:27:47 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-05 11:27:47 +0900 |
commit | 39686e18dbbbcfb32d891b86c3b1a978525bf370 (patch) | |
tree | 017001d6c617b9b521cebb9a65f04e1618ce338a /table/temporary_structs.go | |
parent | 9dd3001830c17f08ce659af003fb21b18df4883c (diff) |
table: add initial code
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/temporary_structs.go')
-rw-r--r-- | table/temporary_structs.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/table/temporary_structs.go b/table/temporary_structs.go new file mode 100644 index 00000000..6350d2e7 --- /dev/null +++ b/table/temporary_structs.go @@ -0,0 +1,34 @@ +// core.go +package table + +import ( + "github.com/osrg/gobgp/packet" + "net" +) + +type CoreService struct { + CommonConf *Commons + NeighborsConf *Neighbors +} +type Neighbors struct { + //need to define a structure +} +type Commons struct { + //need to define a structure +} +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 +} |