]> git.ipfire.org Git - thirdparty/pdns.git/blob - pdns/dnsdist-ecs.hh
94930b10f8893c32bcc8dc21776ee4669726f22c
[thirdparty/pdns.git] / pdns / dnsdist-ecs.hh
1 #pragma once
2
3 int rewriteResponseWithoutEDNS(const char * packet, size_t len, vector<uint8_t>& newContent);
4 int locateEDNSOptRR(char * packet, size_t len, char ** optStart, size_t * optLen, bool * last);
5 void handleEDNSClientSubnet(char * packet, size_t packetSize, unsigned int consumed, uint16_t * len, string& largerPacket, bool* ednsAdded, bool* ecsAdded, const ComboAddress& remote);
6 void generateOptRR(const std::string& optRData, string& res);
7 int removeEDNSOptionFromOPT(char* optStart, size_t* optLen, const uint16_t optionCodeToRemove);
8 int rewriteResponseWithoutEDNSOption(const char * packet, const size_t len, const uint16_t optionCodeToSkip, vector<uint8_t>& newContent);