git://git.halfball.org
/
plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f96a716
)
pkg/utils: fix docstring
author
Stefan Junker
<mail@stefanjunker.de>
Wed, 30 Mar 2016 17:40:31 +0000
(19:40 +0200)
committer
Stefan Junker
<mail@stefanjunker.de>
Thu, 31 Mar 2016 16:01:32 +0000
(18:01 +0200)
utils/utils.go
patch
|
blob
|
history
diff --git
a/utils/utils.go
b/utils/utils.go
index
e1468aa
..
1566252
100644
(file)
--- a/
utils/utils.go
+++ b/
utils/utils.go
@@
-9,7
+9,7
@@
const ChainCNIPrefix = ("CNI-")
const MaxChainLength = 29 - len(ChainCNIPrefix)
// Generates a chain name to be used with iptables.
-// Ensures that the generated name is less than
+// Ensures that the generated
chain
name is less than
// 29 chars in length
func FormatChainName(name string, id string) string {
chain := fmt.Sprintf("%x", sha512.Sum512([]byte(name+id)))