ubus: fix crash caused by missing static keyword
Signed-off-by: Felix Fietkau <[email protected]>
map: default to fnmatch matching for dns patterns. support regex via leading /
Simplifies writing DNS matching rules
Signed-off-by: Felix Fietkau <[email protected]>
ubus: subscribe to dnsmasq.dns for dns lookup results
Signed-off-by: Felix Fietkau <[email protected]>
qosify-bpf: inline check_flow() to ensure that it is jited
Signed-off-by: Felix Fietkau <[email protected]>
map: increase active timeout to 300
Matches a typical maximum HTTP keepalive timeout
Signed-off-by: Felix Fietkau <[email protected]>
map: improve timeout handling of IP entries
Instead of expiring them at TTL, introduce an active timeout (default 60)
Whenever an IP entry expires, timeout gets reset to the active timeout
value. If during that time, a packet was seen matching the IP entry, the
timeout is automatically extended.
Signed-off-by: Felix Fietkau <[email protected]>
loader: always reinitialize programs
Improves reliability of upgrading the package
Signed-off-by: Felix Fietkau <[email protected]>
interface: enable NAT on interfaces by default
Signed-off-by: Felix Fietkau <[email protected]>
map: introduce low effort codepoint from RFC8622
Signed-off-by: Felix Fietkau <[email protected]>
README: document mapping file syntax
Signed-off-by: Felix Fietkau <[email protected]>
README: mention dns regex entries
Signed-off-by: Felix Fietkau <[email protected]>
ubus: add support for dynamically adding dns based rules
Signed-off-by: Felix Fietkau <[email protected]>
ubus: add api for providing dns lookup results for dns regex rules
Signed-off-by: Felix Fietkau <[email protected]>
map: add support for adding dns regex patterns
This will be used for hostname based dscp mark rules
Signed-off-by: Felix Fietkau <[email protected]>
map: make a helper function for freeing entries
Signed-off-by: Felix Fietkau <[email protected]>