// MakeChainLine return an iptables-save/restore formatted chain line given a Chain func MakeChainLine(chain Chain) string { … } // GetChainsFromTable parses iptables-save data to find the chains that are defined. It // assumes that save contains a single table's data, and returns a set with keys for every // chain defined in that table. func GetChainsFromTable(save []byte) sets.Set[Chain] { … }