mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +00:00
Reduce PCB_ISIPV6 macro usage some more
This commit is contained in:
parent
339e82d7aa
commit
50303eea23
@ -112,7 +112,7 @@ raw_input(struct pbuf *p, struct netif *inp)
|
||||
#if IP_SOF_BROADCAST_RECV
|
||||
/* broadcast filter? */
|
||||
if ((ip_get_option(pcb, SOF_BROADCAST) || !ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()))
|
||||
|| PCB_ISIPV6(pcb)
|
||||
|| IP_IS_V6_VAL(pcb->local_ip)
|
||||
)
|
||||
#endif /* IP_SOF_BROADCAST_RECV */
|
||||
{
|
||||
|
@ -598,7 +598,7 @@ tcp_listen_input(struct tcp_pcb_listen *pcb)
|
||||
|
||||
#if TCP_CALCULATE_EFF_SEND_MSS
|
||||
npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip,
|
||||
&npcb->remote_ip, PCB_ISIPV6(npcb));
|
||||
&npcb->remote_ip, IP_IS_V6_VAL(npcb->remote_ip));
|
||||
#endif /* TCP_CALCULATE_EFF_SEND_MSS */
|
||||
|
||||
MIB2_STATS_INC(mib2.tcppassiveopens);
|
||||
|
Loading…
Reference in New Issue
Block a user