IPv6: #define IPH_PROTO(hdr) (iphdr->nexthdr) to remove #ifdef IPv6 in udp_input()

This commit is contained in:
goldsimon
2007-06-03 18:10:33 +00:00
parent 8fd6a61df6
commit 3639daa329
2 changed files with 2 additions and 4 deletions

View File

@@ -88,6 +88,8 @@ struct ip_hdr {
struct ip_addr src, dest; /* source and destination IP addresses */
};
#define IPH_PROTO(hdr) (iphdr->nexthdr)
void ip_init(void);
#include "lwip/netif.h"