git://git.halfball.org
/
cni.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a52316
)
pkg/utils/hwaddr tests: cover v4 in v6 addr
author
Stefan Junker
<mail@stefanjunker.de>
Mon, 1 Aug 2016 23:50:40 +0000
(16:50 -0700)
committer
Stefan Junker
<mail@stefanjunker.de>
Mon, 1 Aug 2016 23:50:40 +0000
(16:50 -0700)
pkg/utils/hwaddr/hwaddr_test.go
patch
|
blob
|
history
diff --git
a/pkg/utils/hwaddr/hwaddr_test.go
b/pkg/utils/hwaddr/hwaddr_test.go
index
51c4e49
..
b77ccd8
100644
(file)
--- a/
pkg/utils/hwaddr/hwaddr_test.go
+++ b/
pkg/utils/hwaddr/hwaddr_test.go
@@
-42,6
+42,10
@@
var _ = Describe("Hwaddr", func() {
ip: net.ParseIP("172.17.0.2"),
expectedMAC: (net.HardwareAddr)(append(hwaddr.PrivateMACPrefix, 0xac, 0x11, 0x00, 0x02)),
},
+ {
+ ip: net.IPv4(byte(172), byte(17), byte(0), byte(2)),
+ expectedMAC: (net.HardwareAddr)(append(hwaddr.PrivateMACPrefix, 0xac, 0x11, 0x00, 0x02)),
+ },
}
for _, tc := range testCases {