2018-05-04 14:42:54 +00:00
|
|
|
#ifndef ESP_MDNS_NETWORKING_H_
|
|
|
|
#define ESP_MDNS_NETWORKING_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MDNS Server Networking -- private include
|
2019-06-06 02:57:29 +00:00
|
|
|
*
|
2018-05-04 14:42:54 +00:00
|
|
|
*/
|
|
|
|
#include "mdns.h"
|
|
|
|
#include "mdns_private.h"
|
|
|
|
#include "sdkconfig.h"
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include "freertos/queue.h"
|
|
|
|
#include "freertos/semphr.h"
|
|
|
|
#include "lwip/ip_addr.h"
|
|
|
|
#include "lwip/pbuf.h"
|
|
|
|
#include "lwip/igmp.h"
|
|
|
|
#include "lwip/udp.h"
|
|
|
|
#include "lwip/mld6.h"
|
|
|
|
#include "lwip/priv/tcpip_priv.h"
|
|
|
|
#include "esp_wifi.h"
|
|
|
|
#include "esp_system.h"
|
|
|
|
#include "esp_timer.h"
|
2018-11-21 05:46:45 +00:00
|
|
|
#include "esp_event.h"
|
2019-10-03 08:52:53 +00:00
|
|
|
#if CONFIG_ETH_ENABLED
|
2018-11-21 05:46:45 +00:00
|
|
|
#include "esp_eth.h"
|
2019-06-06 02:57:29 +00:00
|
|
|
#endif
|
2018-05-04 14:42:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Queue RX packet action
|
|
|
|
*/
|
|
|
|
esp_err_t _mdns_send_rx_action(mdns_rx_packet_t * packet);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Start PCB
|
|
|
|
*/
|
|
|
|
esp_err_t _mdns_pcb_init(tcpip_adapter_if_t tcpip_if, mdns_ip_protocol_t ip_protocol);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Stop PCB
|
|
|
|
*/
|
|
|
|
esp_err_t _mdns_pcb_deinit(tcpip_adapter_if_t tcpip_if, mdns_ip_protocol_t ip_protocol);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief send packet over UDP
|
|
|
|
*
|
|
|
|
* @param server The server
|
|
|
|
* @param data byte array containing the packet data
|
|
|
|
* @param len length of the packet data
|
|
|
|
*
|
|
|
|
* @return length of sent packet or 0 on error
|
|
|
|
*/
|
|
|
|
size_t _mdns_udp_pcb_write(tcpip_adapter_if_t tcpip_if, mdns_ip_protocol_t ip_protocol, const ip_addr_t *ip, uint16_t port, uint8_t * data, size_t len);
|
|
|
|
|
|
|
|
#endif /* ESP_MDNS_NETWORKING_H_ */
|