Lines Matching refs:flags
66 seg->flags |= TF_SEG_DATA_CHECKSUMMED; } while(0)
136 pcb->flags |= TF_FIN;
140 /* no data, no length, flags, copy=1, no optdata */
151 * @param flags TCP flags for header.
159 tcp_create_segment(struct tcp_pcb *pcb, struct pbuf *p, u8_t flags, u32_t seqno, u8_t optflags)
169 seg->flags = optflags;
196 TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), flags);
213 * @param apiflags API flags given to tcp_write.
247 (!(pcb->flags & TF_NODELAY) &&
311 pcb->flags |= TF_NAGLEMEMERR;
324 pcb->flags |= TF_NAGLEMEMERR;
348 * @param apiflags combination of following flags :
392 if ((pcb->flags & TF_TIMESTAMP)) {
431 unsent_optlen = LWIP_TCP_OPT_LENGTH(last_unsent->flags);
463 * We don't extend segments containing SYN/FIN flags or options
595 seg->flags |= TF_SEG_DATA_CHECKSUMMED;
658 last_unsent->flags |= TF_SEG_DATA_CHECKSUMMED;
694 pcb->flags |= TF_NAGLEMEMERR;
717 * @param flags TCP header flags to set in the outgoing segment.
722 tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags)
731 LWIP_ASSERT("tcp_enqueue_flags: need either TCP_SYN or TCP_FIN in flags (programmer violates API)",
732 (flags & (TCP_SYN | TCP_FIN)) != 0);
739 pcb->flags |= TF_NAGLEMEMERR;
743 if (flags & TCP_SYN) {
747 if ((pcb->flags & TF_TIMESTAMP)) {
753 /* tcp_enqueue_flags is always called with either SYN or FIN in flags.
765 pcb->flags |= TF_NAGLEMEMERR;
773 if ((seg = tcp_create_segment(pcb, p, flags, pcb->snd_lbb, optflags)) == NULL) {
774 pcb->flags |= TF_NAGLEMEMERR;
785 (u16_t)flags));
801 if ((flags & TCP_SYN) || (flags & TCP_FIN)) {
806 if (flags & TCP_FIN) {
807 pcb->flags |= TF_FIN;
849 if (pcb->flags & TF_TIMESTAMP) {
862 /* remove ACK flags from the PCB, as we send an empty ACK now */
863 pcb->flags &= ~(TF_ACK_DELAY | TF_ACK_NOW);
869 if (pcb->flags & TF_TIMESTAMP) {
928 if (pcb->flags & TF_ACK_NOW &&
974 ((pcb->flags & (TF_NAGLEMEMERR | TF_FIN)) == 0)){
990 pcb->flags &= ~(TF_ACK_DELAY | TF_ACK_NOW);
1038 pcb->flags &= ~TF_NAGLEMEMERR;
1070 if (seg->flags & TF_SEG_OPTS_MSS) {
1083 if (seg->flags & TF_SEG_OPTS_TS) {
1132 if ((seg->flags & TF_SEG_DATA_CHECKSUMMED) == 0) {
1323 if (pcb->unacked != NULL && !(pcb->flags & TF_INFR)) {
1350 pcb->flags |= TF_INFR;