diff options
| author | Felix Fietkau | 2022-03-18 11:38:36 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2022-03-21 19:16:04 +0000 |
| commit | d7ba5804eae4255cee2e316f40e93c830900cefd (patch) | |
| tree | 0cb7f0a635884311ccef7da543748accd74dcd97 | |
| parent | 8fbaf39dbc957bd5b46686cb54532ce4db677e7b (diff) | |
| download | qosify-d7ba5804eae4255cee2e316f40e93c830900cefd.tar.gz | |
interface: replace open-coded ifb-dns string with QOSIFY_DNS_IFNAME
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/interface.c b/interface.c index 667cf12..46e36a3 100644 --- a/interface.c +++ b/interface.c @@ -268,22 +268,22 @@ cmd_add_ingress(struct qosify_iface *iface, bool eth) ofs = prepare_filter_cmd(buf, sizeof(buf), iface->ifname, prio++, true, false); APPEND(buf, ofs, " protocol ip u32 match ip sport 53 0xffff " - "flowid 1:1 action mirred egress redirect dev ifb-dns"); + "flowid 1:1 action mirred egress redirect dev " QOSIFY_DNS_IFNAME); qosify_run_cmd(buf, false); ofs = prepare_filter_cmd(buf, sizeof(buf), iface->ifname, prio++, true, false); APPEND(buf, ofs, " protocol 802.1Q u32 offset plus 4 match ip sport 53 0xffff " - "flowid 1:1 action mirred egress redirect dev ifb-dns"); + "flowid 1:1 action mirred egress redirect dev " QOSIFY_DNS_IFNAME); qosify_run_cmd(buf, false); ofs = prepare_filter_cmd(buf, sizeof(buf), iface->ifname, prio++, true, false); APPEND(buf, ofs, " protocol ipv6 u32 match ip6 sport 53 0xffff " - "flowid 1:1 action mirred egress redirect dev ifb-dns"); + "flowid 1:1 action mirred egress redirect dev " QOSIFY_DNS_IFNAME); qosify_run_cmd(buf, false); ofs = prepare_filter_cmd(buf, sizeof(buf), iface->ifname, prio++, true, false); APPEND(buf, ofs, " protocol ipv6 u32 offset plus 4 match ip6 sport 53 0xffff " - "flowid 1:1 action mirred egress redirect dev ifb-dns"); + "flowid 1:1 action mirred egress redirect dev " QOSIFY_DNS_IFNAME); qosify_run_cmd(buf, false); |