diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2015-10-14 18:35:01 +0900 |
---|---|---|
committer | Eiichiro Watanabe <a16tochjp@gmail.com> | 2015-10-14 18:35:01 +0900 |
commit | 577977900f447267c01026e516e6748e724e3540 (patch) | |
tree | 7a7272ff08a241c76e8245c63d75302168771eae /packet/bgp.go | |
parent | 96067b476fabc6271b939e5bc94034a233dea1c4 (diff) |
packet: fix incompatible struct field tags
Diffstat (limited to 'packet/bgp.go')
-rw-r--r-- | packet/bgp.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packet/bgp.go b/packet/bgp.go index 201a4cc9..69f74e0e 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -330,7 +330,7 @@ func (c CapGracefulRestartTuples) MarshalJSON() ([]byte, error) { type CapGracefulRestartValue struct { Flags uint8 `json:"flags"` Time uint16 `json:"time"` - Tuples []CapGracefulRestartTuples `json"tuples"` + Tuples []CapGracefulRestartTuples `json:"tuples"` } type CapGracefulRestart struct { @@ -405,8 +405,8 @@ func (c *CapFourOctetASNumber) Serialize() ([]byte, error) { func (c *CapFourOctetASNumber) MarshalJSON() ([]byte, error) { return json.Marshal(struct { - Code BGPCapabilityCode `json"code"` - Value uint32 `json"value"` + Code BGPCapabilityCode `json:"code"` + Value uint32 `json:"value"` }{ Code: c.Code(), Value: c.CapValue, @@ -472,7 +472,7 @@ func (c *CapAddPath) Serialize() ([]byte, error) { func (c *CapAddPath) MarshalJSON() ([]byte, error) { return json.Marshal(struct { - Code BGPCapabilityCode `json"code"` + Code BGPCapabilityCode `json:"code"` Value RouteFamily `json:"value"` Mode BGPAddPathMode `json:"mode"` }{ |