pkg: add a function to generate chain names
authorAbhishek Chanda <abhishek.becs@gmail.com>
Wed, 23 Mar 2016 00:16:59 +0000 (17:16 -0700)
committerStefan Junker <mail@stefanjunker.de>
Thu, 31 Mar 2016 16:01:32 +0000 (18:01 +0200)
commitc33daf67063f5997f9e28aa1395c41f612c63eac
tree6bfc4d49328fce3ae8d192fd97772ec5f9cdc4c3
parentbacaa11d2d87d871c0b4d682aa1a9077a5f366eb
pkg: add a function to generate chain names

Adds a function to generate chain names for use in iptables and
ports all drivers to use that function. Also adds tests for the
said function.
pkg/utils/utils.go [new file with mode: 0644]
pkg/utils/utils_suite_test.go [new file with mode: 0644]
pkg/utils/utils_test.go [new file with mode: 0644]
plugins/main/bridge/bridge.go
plugins/main/ptp/ptp.go
test