Lines Matching refs:c_chain

316     const char* c_chain = chain.c_str();  in makeInterfaceQuotaCommands()  local
320 StringPrintf(":%s -", c_chain), in makeInterfaceQuotaCommands()
321 StringPrintf("-A %s -j bw_penalty_box", c_chain), in makeInterfaceQuotaCommands()
322 StringPrintf("-I bw_INPUT %d -i %s -j %s", ruleIndex, c_iface, c_chain), in makeInterfaceQuotaCommands()
323 StringPrintf("-I bw_OUTPUT %d -o %s -j %s", ruleIndex, c_iface, c_chain), in makeInterfaceQuotaCommands()
324 StringPrintf("-A bw_FORWARD -i %s -j %s", c_iface, c_chain), in makeInterfaceQuotaCommands()
325 StringPrintf("-A bw_FORWARD -o %s -j %s", c_iface, c_chain), in makeInterfaceQuotaCommands()
326 StringPrintf("-A %s -m quota2 ! --quota %" PRIu64 " --name %s -j REJECT", c_chain, in makeInterfaceQuotaCommands()
335 const char* c_chain = chain.c_str(); in removeInterfaceQuotaCommands() local
339 StringPrintf("-D bw_INPUT -i %s -j %s", c_iface, c_chain), in removeInterfaceQuotaCommands()
340 StringPrintf("-D bw_OUTPUT -o %s -j %s", c_iface, c_chain), in removeInterfaceQuotaCommands()
341 StringPrintf("-D bw_FORWARD -i %s -j %s", c_iface, c_chain), in removeInterfaceQuotaCommands()
342 StringPrintf("-D bw_FORWARD -o %s -j %s", c_iface, c_chain), in removeInterfaceQuotaCommands()
343 StringPrintf("-F %s", c_chain), in removeInterfaceQuotaCommands()
344 StringPrintf("-X %s", c_chain), in removeInterfaceQuotaCommands()
373 const char* c_chain = chain.c_str(); in makeInterfaceSharedQuotaCommands() local
377 StringPrintf("-I bw_INPUT %d -i %s -j %s", ruleIndex, c_iface, c_chain), in makeInterfaceSharedQuotaCommands()
378 StringPrintf("-I bw_OUTPUT %d -o %s -j %s", ruleIndex, c_iface, c_chain), in makeInterfaceSharedQuotaCommands()
379 StringPrintf("-A bw_FORWARD -i %s -j %s", c_iface, c_chain), in makeInterfaceSharedQuotaCommands()
380 StringPrintf("-A bw_FORWARD -o %s -j %s", c_iface, c_chain), in makeInterfaceSharedQuotaCommands()
384 c_chain, quota)); in makeInterfaceSharedQuotaCommands()
393 const char* c_chain = chain.c_str(); in removeInterfaceSharedQuotaCommands() local
397 StringPrintf("-D bw_INPUT -i %s -j %s", c_iface, c_chain), in removeInterfaceSharedQuotaCommands()
398 StringPrintf("-D bw_OUTPUT -o %s -j %s", c_iface, c_chain), in removeInterfaceSharedQuotaCommands()
399 StringPrintf("-D bw_FORWARD -i %s -j %s", c_iface, c_chain), in removeInterfaceSharedQuotaCommands()
400 StringPrintf("-D bw_FORWARD -o %s -j %s", c_iface, c_chain), in removeInterfaceSharedQuotaCommands()
404 c_chain, quota)); in removeInterfaceSharedQuotaCommands()