Eliminate IP_PCB_IPVER_INPUT_MATCH macro

This commit is contained in:
Dirk Ziegelmeier
2016-02-21 19:21:36 +01:00
parent 8f675c37fc
commit 5a25652c21
4 changed files with 3 additions and 7 deletions

View File

@@ -78,14 +78,10 @@ extern "C" {
#if LWIP_IPV6 && LWIP_IPV4
#define IP_PCB_ISIPV6_MEMBER u8_t isipv6;
#define IP_PCB_IPVER_EQ(pcb1, pcb2) ((pcb1)->isipv6 == (pcb2)->isipv6)
#define IP_PCB_IPVER_INPUT_MATCH(pcb) (ip_current_is_v6() ? \
((pcb)->isipv6 != 0) : \
((pcb)->isipv6 == 0))
#define PCB_ISIPV6(pcb) ((pcb)->isipv6)
#else
#define IP_PCB_ISIPV6_MEMBER
#define IP_PCB_IPVER_EQ(pcb1, pcb2) 1
#define IP_PCB_IPVER_INPUT_MATCH(pcb) 1
#define PCB_ISIPV6(pcb) LWIP_IPV6
#endif /* LWIP_IPV6 */