Adding upstream version 2.6.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 08:57:35 +01:00
parent 87b1cd2929
commit dd7b5026ba
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
7 changed files with 66 additions and 16 deletions

View file

@ -0,0 +1,10 @@
#!/usr/bin/env python3
import dns.edns
import sys
if len(sys.argv) > 1:
opt = dns.edns.ECSOption.from_text(sys.argv[1])
print("-e %d:%s" % (dns.edns.ECS, opt.to_wire().hex()))
else:
print("usage: dnsperf-ecs-gen.py <address/srclen[/scopelen]>")