summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-16 19:13:32 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-16 19:13:32 +0900
commit1ee4e65bc9ed53887c9c835dfbb22d3b7817d71c (patch)
treea564456c286dbc48003830cdbf6915f48857022d /packet/bgp.go
parent63908917a29f27e2edd0ad43fa25decf5164e038 (diff)
server: handle over 4096 byte size message
send notification. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp.go')
-rw-r--r--packet/bgp.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet/bgp.go b/packet/bgp.go
index 3e11bf8c..c11cc25c 100644
--- a/packet/bgp.go
+++ b/packet/bgp.go
@@ -2584,7 +2584,8 @@ type BGPBody interface {
}
const (
- BGP_HEADER_LENGTH = 19
+ BGP_HEADER_LENGTH = 19
+ BGP_MAX_MESSAGE_LENGTH = 4096
)
type BGPHeader struct {