Added ip_current_netif() & ip_current_header() to receive extended info about the currently received packet.

This commit is contained in:
goldsimon
2009-05-05 17:50:39 +00:00
parent 99d82c4980
commit 14dba4ae2b
4 changed files with 54 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ err_t ip_output_if(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
err_t ip_output_hinted(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
u8_t ttl, u8_t tos, u8_t proto, u8_t *addr_hint);
#endif /* LWIP_NETIF_HWADDRHINT */
struct netif *ip_current_netif();
const struct ip_hdr *ip_current_header();
#define IP_HLEN 20

View File

@@ -114,6 +114,9 @@ err_t ip_output_if(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
u8_t ttl, u8_t proto,
struct netif *netif);
#define ip_current_netif() NULL
#define ip_current_header() NULL
#if IP_DEBUG
void ip_debug_print(struct pbuf *p);
#endif /* IP_DEBUG */