mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-26 01:57:01 +08:00
tcp.c, tcp_in.c, tcp.h, opt.h: Rename LWIP_CALCULATE_EFF_SEND_MSS in TCP_CALCULATE_EFF_SEND_MSS to have coherent TCP options names.
This commit is contained in:
@@ -677,15 +677,15 @@
|
||||
#endif
|
||||
|
||||
/**
|
||||
* LWIP_CALCULATE_EFF_SEND_MSS: "The maximum size of a segment that TCP really
|
||||
* TCP_CALCULATE_EFF_SEND_MSS: "The maximum size of a segment that TCP really
|
||||
* sends, the 'effective send MSS,' MUST be the smaller of the send MSS (which
|
||||
* reflects the available reassembly buffer size at the remote host) and the
|
||||
* largest size permitted by the IP layer" (RFC 1122)
|
||||
* Setting this to 1 enables code that checks TCP_MSS against the MTU of the
|
||||
* netif used for a connection and limits the MSS it would be too big otherwise.
|
||||
* netif used for a connection and limits the MSS if it would be too big otherwise.
|
||||
*/
|
||||
#ifndef LWIP_CALCULATE_EFF_SEND_MSS
|
||||
#define LWIP_CALCULATE_EFF_SEND_MSS 1
|
||||
#ifndef TCP_CALCULATE_EFF_SEND_MSS
|
||||
#define TCP_CALCULATE_EFF_SEND_MSS 1
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -531,9 +531,9 @@ u32_t tcp_next_iss(void);
|
||||
void tcp_keepalive(struct tcp_pcb *pcb);
|
||||
void tcp_zero_window_probe(struct tcp_pcb *pcb);
|
||||
|
||||
#if LWIP_CALCULATE_EFF_SEND_MSS
|
||||
#if TCP_CALCULATE_EFF_SEND_MSS
|
||||
u16_t tcp_eff_send_mss(u16_t sendmss, struct ip_addr *addr);
|
||||
#endif /* LWIP_CALCULATE_EFF_SEND_MSS*/
|
||||
#endif /* TCP_CALCULATE_EFF_SEND_MSS */
|
||||
|
||||
extern struct tcp_pcb *tcp_input_pcb;
|
||||
extern u32_t tcp_ticks;
|
||||
|
||||
Reference in New Issue
Block a user