|
| | DnsHandler (Agent *agent, boost::shared_ptr< PktInfo > info, boost::asio::io_context &io) |
| |
| virtual | ~DnsHandler () |
| |
| bool | Run () |
| |
| bool | TimerExpiry (uint16_t xid) |
| |
| void | DefaultDnsResolveHandler (const boost::system::error_code &error, boost_udp::resolver::iterator it, DnsItems::iterator item) |
| |
Public Member Functions inherited from ProtoHandler |
| | ProtoHandler (Agent *agent, boost::shared_ptr< PktInfo > info, boost::asio::io_context &io) |
| |
| virtual | ~ProtoHandler () |
| |
| void | Send (uint32_t itf, uint32_t vrf, uint16_t, PktHandler::PktModuleName) |
| |
| void | Send (uint32_t itf, uint32_t vrf, uint16_t cmd, uint32_t param1, uint32_t param2, PktHandler::PktModuleName mod) |
| |
| int | EthHdr (const MacAddress &src, const MacAddress &dest, const uint16_t proto) |
| |
| int | EthHdr (char *buff, uint16_t len, const MacAddress &src, const MacAddress &dest, const uint16_t proto, uint16_t vlan_id) |
| |
| int | EthHdr (char *buff, uint16_t len, const Interface *interface, const MacAddress &src, const MacAddress &dest, const uint16_t proto) |
| |
| int | EthHdr (char *buff, uint16_t len, uint32_t ifindex, const MacAddress &src, const MacAddress &dest, const uint16_t proto) |
| |
| void | VlanHdr (uint8_t *ptr, uint16_t tci) |
| |
| void | IpHdr (uint16_t len, in_addr_t src, in_addr_t dest, uint8_t protocol, uint16_t id, uint8_t ttl) |
| |
| uint16_t | IpHdr (char *buff, uint16_t buf_len, uint16_t len, in_addr_t src, in_addr_t dest, uint8_t protocol, uint16_t id, uint8_t ttl) |
| |
| void | Ip6Hdr (ip6_hdr *ip, uint16_t plen, uint8_t next_header, uint8_t hlim, uint8_t *src, uint8_t *dest) |
| |
| void | UdpHdr (uint16_t len, in_addr_t src, uint16_t src_port, in_addr_t dest, uint16_t dest_port) |
| |
| void | UdpHdr (udphdr *hdr, uint16_t len, const uint8_t *src, uint16_t src_port, const uint8_t *dest, uint16_t dest_port, uint8_t next_hdr) |
| |
| void | UdpHdr (uint16_t len, const uint8_t *src, uint16_t src_port, const uint8_t *dest, uint16_t dest_port, uint8_t next_hdr) |
| |
| uint16_t | UdpHdr (udphdr *udp, uint16_t buf_len, uint16_t len, in_addr_t src, uint16_t src_port, in_addr_t dest, uint16_t dest_port) |
| |
| uint16_t | IcmpHdr (char *buff, uint16_t buf_len, uint8_t type, uint8_t code, uint16_t word1, uint16_t word2) |
| |
| void | IcmpChecksum (char *buff, uint16_t buf_len) |
| |
| void | IgmpChecksum (char *buff, uint16_t buf_len) |
| |
| uint32_t | Sum (uint16_t *, std::size_t, uint32_t) const |
| |
| uint16_t | Csum (uint16_t *, std::size_t, uint32_t) const |
| |
| uint16_t | UdpCsum (in_addr_t, in_addr_t, std::size_t, udphdr *) const |
| |
| uint16_t | Ipv6Csum (const uint8_t *src, const uint8_t *dest, uint16_t plen, uint8_t next_hdr, uint16_t *hdr) const |
| |
| uint16_t | Icmpv6Csum (const uint8_t *src, const uint8_t *dest, icmp6_hdr *icmp, uint16_t plen) const |
| |
| Agent * | agent () const |
| |
| uint32_t | GetVrfIndex () const |
| |
| uint32_t | GetInterfaceIndex () const |
| |
| uint16_t | GetLength () const |
| |
| uint32_t | GetCmdParam () const |
| |
| PktInfo * | pkt_info () const |
| |
| uint32_t | EncapHeaderLen () const |
| |
|
| bool | HandleRequest () |
| |
| bool | HandleDefaultDnsRequest (const VmInterface *vmitf) |
| |
| void | DefaultDnsSendResponse () |
| |
| bool | HandleVirtualDnsRequest (const VmInterface *vmitf) |
| |
| bool | ResolveLinkLocalRequest (DnsItems::iterator &item, DnsItems *linklocal_items) const |
| |
| bool | ResolveAllLinkLocalRequests () |
| |
| void | BuildDnsResolvers () |
| |
| void | BuildDefaultDnsResolvers () |
| |
| bool | HandleMessage () |
| |
| bool | HandleDefaultDnsResponse () |
| |
| bool | HandleBindResponse () |
| |
| bool | HandleUpdateResponse () |
| |
| bool | HandleRetryExpiry () |
| |
| bool | HandleUpdate () |
| |
| bool | HandleModifyVdns () |
| |
| bool | UpdateAll () |
| |
| void | SendXmppUpdate (AgentDnsXmppChannel *channel, DnsUpdateData *xmpp_data) |
| |
| void | ParseQuery () |
| |
| void | Resolve (dns_flags flags, const DnsItems &ques, DnsItems &ans, DnsItems &auth, DnsItems &add) |
| |
| void | SendDnsResponse () |
| |
| void | UpdateQueryNames () |
| |
| void | UpdateOffsets (DnsItem &item, bool name_update_required) |
| |
| void | UpdateGWAddress (DnsItem &item) |
| |
| void | Update (InterTaskMsg *msg) |
| |
| void | DelUpdate (InterTaskMsg *msg) |
| |
| void | UpdateStats () |
| |
| void | GetDomainName (const VmInterface *vm_itf, std::string *domain_name) const |
| |
| bool | GetDomainNameFromDhcp (std::vector< autogen::DhcpOptionType > &options, std::string *domain_name) const |
| |
| void | GetBaseName (const std::string &name, std::string *base) const |
| |
| std::string | DnsItemsToString (DnsItems &items) const |
| |
| void | HandleInvalidBindResponse (DnsHandler *handler, dns_flags flags, const DnsItems &ques, DnsItems &ans, DnsItems &auth, DnsItems &add, uint16_t xid) |
| |
| bool | NeedRetryForNextServer (uint16_t code) |
| |
| bool | SendToDefaultServer () |
| |
| bool | DefaultMethodInUse () |
| |
| uint8_t | curr_index () |
| |
| uint8_t | last_index () |
| |
| void | IncrCurrIndex () |
| |
| bool | SendDnsQuery (DnsResolverInfo *resolver, uint16_t xid) |
| |
| | DISALLOW_COPY_AND_ASSIGN (DnsHandler) |
| |
Definition at line 21 of file dns_handler.h.