]> granicus.if.org Git - pdns/commitdiff
sdig: report EDNS Padding size
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Sat, 18 May 2019 23:37:45 +0000 (01:37 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 4 Jun 2019 13:43:03 +0000 (15:43 +0200)
pdns/sdig.cc

index 9d366f865a44852befc3664aafcb3ab0f8f12d2e..34828442d3bdb5fd694c77ef02e363b6a1b76b59 100644 (file)
@@ -249,7 +249,9 @@ try
           cerr<<"EDNS Subnet response: "<<reso.source.toString()<<", scope: "<<reso.scope.toString()<<", family = "<<reso.scope.getNetwork().sin4.sin_family<<endl;
        }
       }
-
+      else if(iter->first == EDNSOptionCode::PADDING) {
+        cerr<<"EDNS Padding size: "<<(iter->second.size())<<endl;
+      }
       else {
         cerr<<"Have unknown option "<<(int)iter->first<<endl;
       }