summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-02-19 13:47:54 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-02-19 13:47:54 +0900
commit0bc195ce7eb43c7403683171dc5700cd1599b8c9 (patch)
treee17bb8c6acf4e32b752ea0ca9a9bf49dab2b9910 /packet/bgp
parentf6fc0a3e9639e1decf0765e56a72510bf2e7bcda (diff)
packet/bgp: Fix a typo of TunnelEncapSubTLVUnknown
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'packet/bgp')
-rw-r--r--packet/bgp/bgp.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index 8e9288e0..45203ab8 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -7470,12 +7470,12 @@ func (t *TunnelEncapSubTLV) Serialize(value []byte) (buf []byte, err error) {
return buf, nil
}
-type TunnelEncapSubTLVUnkown struct {
+type TunnelEncapSubTLVUnknown struct {
TunnelEncapSubTLV
Value []byte
}
-func (t *TunnelEncapSubTLVUnkown) DecodeFromBytes(data []byte) error {
+func (t *TunnelEncapSubTLVUnknown) DecodeFromBytes(data []byte) error {
value, err := t.TunnelEncapSubTLV.DecodeFromBytes(data)
if err != nil {
return err
@@ -7484,15 +7484,15 @@ func (t *TunnelEncapSubTLVUnkown) DecodeFromBytes(data []byte) error {
return nil
}
-func (t *TunnelEncapSubTLVUnkown) Serialize() ([]byte, error) {
+func (t *TunnelEncapSubTLVUnknown) Serialize() ([]byte, error) {
return t.TunnelEncapSubTLV.Serialize(t.Value)
}
-func (t *TunnelEncapSubTLVUnkown) String() string {
+func (t *TunnelEncapSubTLVUnknown) String() string {
return fmt.Sprintf("{Type: %d, Value: %x}", t.Type, t.Value)
}
-func (t *TunnelEncapSubTLVUnkown) MarshalJSON() ([]byte, error) {
+func (t *TunnelEncapSubTLVUnknown) MarshalJSON() ([]byte, error) {
return json.Marshal(struct {
Type EncapSubTLVType `json:"type"`
Value []byte `json:"value"`
@@ -7502,8 +7502,8 @@ func (t *TunnelEncapSubTLVUnkown) MarshalJSON() ([]byte, error) {
})
}
-func NewTunnelEncapSubTLVUnkown(typ EncapSubTLVType, value []byte) *TunnelEncapSubTLVUnkown {
- return &TunnelEncapSubTLVUnkown{
+func NewTunnelEncapSubTLVUnknown(typ EncapSubTLVType, value []byte) *TunnelEncapSubTLVUnknown {
+ return &TunnelEncapSubTLVUnknown{
TunnelEncapSubTLV: TunnelEncapSubTLV{
Type: typ,
},
@@ -7682,7 +7682,7 @@ func (t *TunnelEncapTLV) DecodeFromBytes(data []byte) error {
case ENCAP_SUBTLV_TYPE_COLOR:
subTlv = &TunnelEncapSubTLVColor{}
default:
- subTlv = &TunnelEncapSubTLVUnkown{
+ subTlv = &TunnelEncapSubTLVUnknown{
TunnelEncapSubTLV: TunnelEncapSubTLV{
Type: subType,
},