diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-06-30 22:55:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-07-01 13:56:09 +0900 |
commit | d1850ee8f591d80a44f4d48f2e475135a2df8a00 (patch) | |
tree | 694ac942b2845ebe86446f96187627016d008c0a /packet/bgp_test.go | |
parent | 2cd6dbe946b2b7b1bd88d286822fd42f5ec9b2ad (diff) |
packet: give better name and comments for label struct
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp_test.go')
-rw-r--r-- | packet/bgp_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packet/bgp_test.go b/packet/bgp_test.go index 90ad7d20..16055819 100644 --- a/packet/bgp_test.go +++ b/packet/bgp_test.go @@ -69,9 +69,9 @@ func update() *BGPMessage { } mp_nlri := []AddrPrefixInterface{ - NewLabelledVPNIPAddrPrefix(20, "192.0.9.0", *NewLabel(1, 2, 3), + NewLabelledVPNIPAddrPrefix(20, "192.0.9.0", *NewMPLSLabelStack(1, 2, 3), NewRouteDistinguisherTwoOctetAS(256, 10000)), - NewLabelledVPNIPAddrPrefix(26, "192.10.8.192", *NewLabel(5, 6, 7, 8), + NewLabelledVPNIPAddrPrefix(26, "192.10.8.192", *NewMPLSLabelStack(5, 6, 7, 8), NewRouteDistinguisherIPAddressAS("10.0.1.1", 10001)), } @@ -79,11 +79,11 @@ func update() *BGPMessage { "fe80:1234:1234:5667:8967:af12:8912:1023")} mp_nlri3 := []AddrPrefixInterface{NewLabelledVPNIPv6AddrPrefix(100, - "fe80:1234:1234:5667:8967:af12:1203:33a1", *NewLabel(5, 6), + "fe80:1234:1234:5667:8967:af12:1203:33a1", *NewMPLSLabelStack(5, 6), NewRouteDistinguisherFourOctetAS(5, 6))} mp_nlri4 := []AddrPrefixInterface{NewLabelledIPAddrPrefix(25, "192.168.0.0", - *NewLabel(5, 6, 7))} + *NewMPLSLabelStack(5, 6, 7))} mac, _ := net.ParseMAC("01:23:45:67:89:ab") mp_nlri5 := []AddrPrefixInterface{ |