Home
last modified time | relevance | path

Searched refs:use_ipv4 (Results 1 – 2 of 2) sorted by relevance

/device/google/cuttlefish/host/libs/allocd/
Dalloc_utils.cpp210 bool CreateEbtables(const std::string& name, bool use_ipv4, in CreateEbtables() argument
212 return EbtablesBroute(name, use_ipv4, true, use_ebtables_legacy) && in CreateEbtables()
213 EbtablesFilter(name, use_ipv4, true, use_ebtables_legacy); in CreateEbtables()
216 bool DestroyEbtables(const std::string& name, bool use_ipv4, in DestroyEbtables() argument
218 return EbtablesBroute(name, use_ipv4, false, use_ebtables_legacy) && in DestroyEbtables()
219 EbtablesFilter(name, use_ipv4, false, use_ebtables_legacy); in DestroyEbtables()
222 bool EbtablesBroute(const std::string& name, bool use_ipv4, bool add, in EbtablesBroute() argument
235 << (use_ipv4 ? "ipv4" : "ipv6") << " --in-if " << name << " -j DROP"; in EbtablesBroute()
242 bool EbtablesFilter(const std::string& name, bool use_ipv4, bool add, in EbtablesFilter() argument
252 << (use_ipv4 ? "ipv4" : "ipv6") << " --out-if " << name << " -j DROP"; in EbtablesFilter()
Dalloc_utils.h82 bool DestroyEbtables(const std::string& name, bool use_ipv4,
84 bool EbtablesBroute(const std::string& name, bool use_ipv4, bool add,
86 bool EbtablesFilter(const std::string& name, bool use_ipv4, bool add,