@@ -136,7 +136,7 @@ bool ip4_netif_exist(const ip4_addr_t *src, const ip4_addr_t *dest)
136136 * Source based IPv4 routing hook function. This function works only
137137 * when destination IP is broadcast IP.
138138 */
139- struct netif *
139+ struct netif * ESP_IRAM_ATTR
140140ip4_route_src_hook (const ip4_addr_t * dest , const ip4_addr_t * src )
141141{
142142 struct netif * netif = NULL ;
@@ -162,7 +162,7 @@ ip4_route_src_hook(const ip4_addr_t *dest, const ip4_addr_t *src)
162162 * Source based IPv4 routing must be fully implemented in
163163 * LWIP_HOOK_IP4_ROUTE_SRC(). This function only provides the parameters.
164164 */
165- struct netif *
165+ struct netif * ESP_IRAM_ATTR
166166ip4_route_src (const ip4_addr_t * dest , const ip4_addr_t * src )
167167{
168168 if (src != NULL ) {
@@ -189,7 +189,7 @@ ip4_route_src(const ip4_addr_t *dest, const ip4_addr_t *src)
189189 * @param dest the destination IP address for which to find the route
190190 * @return the netif on which to send to reach dest
191191 */
192- struct netif *
192+ struct netif * ESP_IRAM_ATTR
193193ip4_route (const ip4_addr_t * dest )
194194{
195195 struct netif * netif ;
@@ -410,7 +410,7 @@ ip4_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp)
410410 * @return ERR_OK if the packet was processed (could return ERR_* if it wasn't
411411 * processed, but currently always returns ERR_OK)
412412 */
413- err_t
413+ err_t ESP_IRAM_ATTR
414414ip4_input (struct pbuf * p , struct netif * inp )
415415{
416416 struct ip_hdr * iphdr ;
@@ -818,7 +818,7 @@ ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
818818 * Same as ip_output_if() but 'src' address is not replaced by netif address
819819 * when it is 'any'.
820820 */
821- err_t
821+ err_t ESP_IRAM_ATTR
822822ip4_output_if_src (struct pbuf * p , const ip4_addr_t * src , const ip4_addr_t * dest ,
823823 u8_t ttl , u8_t tos ,
824824 u8_t proto , struct netif * netif )
@@ -831,7 +831,7 @@ ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
831831 * Same as ip_output_if_opt() but 'src' address is not replaced by netif address
832832 * when it is 'any'.
833833 */
834- err_t
834+ err_t ESP_IRAM_ATTR
835835ip4_output_if_opt_src (struct pbuf * p , const ip4_addr_t * src , const ip4_addr_t * dest ,
836836 u8_t ttl , u8_t tos , u8_t proto , struct netif * netif , void * ip_options ,
837837 u16_t optlen )
0 commit comments