Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsdist: Add QNameLabelsCountRule() and QNameWireLengthRule() #4114

Merged
merged 1 commit into from Jul 21, 2016

Conversation

rgacogne
Copy link
Member

@rgacogne rgacogne commented Jul 5, 2016

  • QNameLabelsCountRule(min, max) matches if the qname has less than
    min or more than max labels.
  • QNameWireLengthRule(min, max) matches if the qname's length on the
    wire is less than min or more than max bytes.
  • Also add Lua bindings for DNSName's countLabels() and wirelength()

* QNameLabelsCountRule(min, max) matches if the qname has less than
min or more than max labels.
* QNameWireLengthRule(min, max) matches if the qname's length on the
wire is less than min or more than max bytes.
* Also add Lua bindings for DNSName's `countLabels()` and `wirelength()`
@@ -248,7 +248,7 @@ char* my_generator(const char* text, int state)
"PoolAction(", "printDNSCryptProviderFingerprint(",
"RegexRule(", "RemoteLogAction(", "RemoteLogResponseAction(", "rmResponseRule(",
"rmRule(", "rmServer(", "roundrobin",
"QTypeRule(",
"QNameLabelsCountRule(", "QNameWireLengthRule(", "QTypeRule(",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wonder if this list should be one item per line for better diffs. Just a thought, not suggesting it for this PR.

@Habbie
Copy link
Member

Habbie commented Jul 7, 2016

LGTM.

@Habbie Habbie merged commit 64b9ac4 into PowerDNS:master Jul 21, 2016
@rgacogne rgacogne deleted the dnsdist-labelscount-rule branch July 21, 2016 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants