2015-04-13 17:40:55 -04:00
|
|
|
/*
|
2020-06-04 04:53:16 -04:00
|
|
|
* include/haproxy/dns.h
|
2015-04-13 17:40:55 -04:00
|
|
|
* This file provides functions related to DNS protocol
|
|
|
|
|
*
|
2021-05-09 00:47:26 -04:00
|
|
|
* Copyright (C) 2020 HAProxy Technologies
|
2015-04-13 17:40:55 -04:00
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation, version 2.1
|
|
|
|
|
* exclusively.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
*/
|
|
|
|
|
|
2020-06-04 04:53:16 -04:00
|
|
|
#ifndef _HAPROXY_DNS_H
|
|
|
|
|
#define _HAPROXY_DNS_H
|
2015-04-13 17:40:55 -04:00
|
|
|
|
2020-06-04 04:53:16 -04:00
|
|
|
#include <haproxy/dns-t.h>
|
2021-02-12 14:03:38 -05:00
|
|
|
#include <haproxy/server-t.h>
|
2015-04-13 17:40:55 -04:00
|
|
|
|
2021-02-12 13:42:55 -05:00
|
|
|
int dns_send_nameserver(struct dns_nameserver *ns, void *buf, size_t len);
|
|
|
|
|
ssize_t dns_recv_nameserver(struct dns_nameserver *ns, void *data, size_t size);
|
2021-01-04 07:32:20 -05:00
|
|
|
int dns_dgram_init(struct dns_nameserver *ns, struct sockaddr_storage *sk);
|
2021-02-12 14:03:38 -05:00
|
|
|
int dns_stream_init(struct dns_nameserver *ns, struct server *s);
|
2015-04-13 17:40:55 -04:00
|
|
|
|
2020-06-04 04:53:16 -04:00
|
|
|
#endif // _HAPROXY_DNS_H
|