Embedded TCP/IP stack  4.7.0
fnet_llmnr.h
1 /**************************************************************************
2 *
3 * Copyright 2014-2017 by Andrey Butok. FNET Community.
4 *
5 ***************************************************************************
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
8 * not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 ***************************************************************************
20 *
21 * LLMNR Server/Responder API.
22 *
23 ***************************************************************************/
24 
25 #ifndef _FNET_LLMNR_H_
26 
27 #define _FNET_LLMNR_H_
28 
29 #if FNET_CFG_LLMNR || defined(__DOXYGEN__)
30 
54 /**************************************************************************/
57 typedef struct
58 {
61  fnet_uint32_t host_name_ttl;
66 
67 /**************************************************************************/
71 typedef void *fnet_llmnr_desc_t;
72 
73 #if defined(__cplusplus)
74 extern "C" {
75 #endif
76 
77 /***************************************************************************/
100 
101 /***************************************************************************/
118 
119 /***************************************************************************/
135 
136 /***************************************************************************/
155 
156 #if defined(__cplusplus)
157 }
158 #endif
159 
162 #endif /* FNET_CFG_LLMNR */
163 
164 #endif /* _FNET_LLMNR_H_ */
fnet_address_family_t addr_family
Address family (IPv6 or IPv4 or both) the server will listen for LLMNR query (it is optional)...
Definition: fnet_llmnr.h:63
const fnet_char_t * host_name
Link-local host name advertised by LLMNR server.
Definition: fnet_llmnr.h:60
fnet_llmnr_desc_t fnet_llmnr_init(fnet_llmnr_params_t *params)
Initializes Link-Local Multicast Name Resolution (LLMNR) server/responder service.
fnet_uint32_t host_name_ttl
TTL value that indicates for how many seconds link-local host name is valid for LLMNR querier...
Definition: fnet_llmnr.h:61
void * fnet_llmnr_desc_t
LLMNR server descriptor.
Definition: fnet_llmnr.h:71
fnet_bool_t
Boolean type.
Definition: fnet_stdlib.h:80
fnet_bool_t fnet_llmnr_is_enabled(fnet_llmnr_desc_t desc)
Detects if the LLMNR Server service is enabled or disabled.
void fnet_llmnr_release(fnet_llmnr_desc_t desc)
Releases the Link-Local Multicast Name Resolution (LLMNR) server/responder service.
fnet_llmnr_desc_t fnet_llmnr_get_by_netif(fnet_netif_desc_t netif)
Looks for a LLMNR Server assigned to the specified network interface.
char fnet_char_t
Type representing the charecter.
Definition: fnet_stdlib.h:75
Initialization parameters for the fnet_llmnr_init() function.
Definition: fnet_llmnr.h:57
void * fnet_netif_desc_t
Network interface descriptor.
Definition: fnet_netif.h:68
fnet_netif_desc_t netif_desc
Network interface descriptor to be used by the LLMNR server.
Definition: fnet_llmnr.h:59
fnet_uint16_t fnet_address_family_t
Address family type.
Definition: fnet_socket.h:137

© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net