*: add global listen port configuration

if port < 0, gobgpd won't listen on tcp:179

Signed-off-by: ISHIDA Wataru <[email protected]>
This commit is contained in:
ISHIDA Wataru
2015-12-21 19:28:25 +09:00
parent e71fb3a3ae
commit 406efffa74
7 changed files with 46 additions and 19 deletions
+3 -2
View File
@@ -1178,8 +1178,9 @@ func (m *Vrf) String() string { return proto.CompactTextString(m) }
func (*Vrf) ProtoMessage() {}
type Global struct {
As uint32 `protobuf:"varint,1,opt,name=as" json:"as,omitempty"`
RouterId string `protobuf:"bytes,2,opt,name=router_id" json:"router_id,omitempty"`
As uint32 `protobuf:"varint,1,opt,name=as" json:"as,omitempty"`
RouterId string `protobuf:"bytes,2,opt,name=router_id" json:"router_id,omitempty"`
ListenPort int32 `protobuf:"varint,3,opt,name=listen_port" json:"listen_port,omitempty"`
}
func (m *Global) Reset() { *m = Global{} }
+1
View File
@@ -467,4 +467,5 @@ message Vrf {
message Global {
uint32 as = 1;
string router_id = 2;
int32 listen_port = 3;
}