Select one of the symbols to view example projects that use it.
 
Outline
#define LWIP_ESP_DEFAULT_HOOKS_H_
#include "lwip/ip_addr.h"
#include "lwip/arch.h"
#include "lwip/err.h"
#include "lwip/dns.h"
#include "lwip/pbuf.h"
#include "netif/dhcp_state.h"
#include
lwip_init_tcp_isn(u32_t, const u8_t *);
lwip_hook_tcp_isn(const ip_addr_t *, u16_t, const ip_addr_t *, u16_t);
#define LWIP_HOOK_TCP_ISN
#define LWIP_HOOK_IP6_ROUTE
#define LWIP_HOOK_ND6_GET_GW
#define LWIP_HOOK_IP6_SELECT_SRC_ADDR
#define LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE
#define LWIP_HOOK_DNS_EXTERNAL_RESOLVE
lwip_hook_ip6_input(struct pbuf *, struct netif *);
#define LWIP_HOOK_IP6_INPUT
ip4_route_src_hook(const ip4_addr_t *, const ip4_addr_t *);
dhcp
netif
dhcp_msg
dhcp_parse_extra_opts(struct dhcp *, uint8_t, uint8_t, uint8_t, struct pbuf *, uint16_t);
dhcp_append_extra_opts(struct netif *, uint8_t, struct dhcp_msg *, uint16_t *);
dhcp_set_vendor_class_identifier(uint8_t, const char *);
dhcp_get_vendor_specific_information(uint8_t, char *);
dhcp_free_vendor_class_identifier();
Files
loading...
SourceVuESP-IDF Framework and ExampleslwIPport/include/lwip_default_hooks.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #ifndef LWIP_ESP_DEFAULT_HOOKS_H_ #define LWIP_ESP_DEFAULT_HOOKS_H_ #include "lwip/ip_addr.h" #include "lwip/arch.h" #include "lwip/err.h" #include "lwip/dns.h" #include "lwip/pbuf.h" #include "netif/dhcp_state.h"6 includes #ifdef ESP_IDF_LWIP_HOOK_FILENAME #include ESP_IDF_LWIP_HOOK_FILENAME #endif #ifdef __cplusplus extern "C" { #endif #ifdef CONFIG_LWIP_HOOK_TCP_ISN_DEFAULT void lwip_init_tcp_isn(u32_t boot_time, const u8_t *secret_16_bytes); #endif #if defined(CONFIG_LWIP_HOOK_TCP_ISN_CUSTOM) || defined(CONFIG_LWIP_HOOK_TCP_ISN_DEFAULT) u32_t lwip_hook_tcp_isn(const ip_addr_t *local_ip, u16_t local_port, const ip_addr_t *remote_ip, u16_t remote_port); #define LWIP_HOOK_TCP_ISN lwip_hook_tcp_isn/* ... */ #endif /* CONFIG_LWIP_HOOK_TCP_ISN... */ #if defined(CONFIG_LWIP_HOOK_IP6_ROUTE_CUSTOM) || defined(CONFIG_LWIP_HOOK_IP6_ROUTE_DEFAULT) struct netif * lwip_hook_ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest); #define LWIP_HOOK_IP6_ROUTE lwip_hook_ip6_route/* ... */ #endif /* CONFIG_LWIP_HOOK_IP6_ROUTE... */ #if defined(CONFIG_LWIP_HOOK_ND6_GET_GW_CUSTOM) || defined(CONFIG_LWIP_HOOK_ND6_GET_GW_DEFAULT) const ip6_addr_t *lwip_hook_nd6_get_gw(struct netif *netif, const ip6_addr_t *dest); #define LWIP_HOOK_ND6_GET_GW lwip_hook_nd6_get_gw/* ... */ #endif /* CONFIG_LWIP_HOOK_ND6_GET_GATEWAY... */ #if defined(CONFIG_LWIP_HOOK_IP6_SELECT_SRC_ADDR_CUSTOM) || defined(CONFIG_LWIP_HOOK_IP6_SELECT_SRC_ADDR_DEFAULT) const ip_addr_t *lwip_hook_ip6_select_source_address(struct netif *netif, const ip6_addr_t *dest); #define LWIP_HOOK_IP6_SELECT_SRC_ADDR lwip_hook_ip6_select_source_address/* ... */ #endif /* CONFIG_LWIP_HOOK_IP6_SELECT_SRC_ADDR... */ #if defined(CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_CUSTOM) || defined(CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_DEFAULT) int lwip_hook_netconn_external_resolve(const char *name, ip_addr_t *addr, u8_t addrtype, err_t *err); #define LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE lwip_hook_netconn_external_resolve/* ... */ #endif /* CONFIG_LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE... */ #if defined(CONFIG_LWIP_HOOK_DNS_EXT_RESOLVE_CUSTOM) int lwip_hook_dns_external_resolve(const char *name, ip_addr_t *addr, dns_found_callback found, void *callback_arg, u8_t addrtype, err_t *err); #define LWIP_HOOK_DNS_EXTERNAL_RESOLVE lwip_hook_dns_external_resolve/* ... */ #endif /* CONFIG_LWIP_HOOK_DNS_EXT_RESOLVE_CUSTOM */ #if defined(CONFIG_LWIP_HOOK_IP6_INPUT_CUSTOM) || defined(CONFIG_LWIP_HOOK_IP6_INPUT_DEFAULT) int lwip_hook_ip6_input(struct pbuf *p, struct netif *inp); #define LWIP_HOOK_IP6_INPUT lwip_hook_ip6_input/* ... */ #endif /* CONFIG_LWIP_HOOK_IP6_INPUT_CUSTIOM... */ #ifdef CONFIG_LWIP_IPV4 struct netif * ip4_route_src_hook(const ip4_addr_t *src,const ip4_addr_t *dest); struct dhcp; struct netif; struct dhcp_msg; void dhcp_parse_extra_opts(struct dhcp *dhcp, uint8_t state, uint8_t option, uint8_t len, struct pbuf* p, uint16_t offset); void dhcp_append_extra_opts(struct netif *netif, uint8_t state, struct dhcp_msg *msg_out, uint16_t *options_out_len); int dhcp_set_vendor_class_identifier(uint8_t len, const char * str); int dhcp_get_vendor_specific_information(uint8_t len, char * str); void dhcp_free_vendor_class_identifier(void);/* ... */ #endif /* CONFIG_LWIP_IPV4 */ #ifdef __cplusplus }{...} #endif /* ... */ #endif /* LWIP_ESP_DEFAULT_HOOKS_H_ */
Details