Lines Matching refs:rep

590 	} rep;  in tcp_v4_send_reset()  local
612 memset(&rep, 0, sizeof(rep)); in tcp_v4_send_reset()
613 rep.th.dest = th->source; in tcp_v4_send_reset()
614 rep.th.source = th->dest; in tcp_v4_send_reset()
615 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
616 rep.th.rst = 1; in tcp_v4_send_reset()
619 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
621 rep.th.ack = 1; in tcp_v4_send_reset()
622 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
627 arg.iov[0].iov_base = (unsigned char *)&rep; in tcp_v4_send_reset()
628 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
664 rep.opt[0] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_reset()
670 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
672 tcp_v4_md5_hash_hdr((__u8 *) &rep.opt[1], in tcp_v4_send_reset()
674 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
725 } rep; in tcp_v4_send_ack() local
728 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
731 arg.iov[0].iov_base = (unsigned char *)&rep; in tcp_v4_send_ack()
732 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
734 rep.opt[0] = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | in tcp_v4_send_ack()
737 rep.opt[1] = htonl(tsval); in tcp_v4_send_ack()
738 rep.opt[2] = htonl(tsecr); in tcp_v4_send_ack()
743 rep.th.dest = th->source; in tcp_v4_send_ack()
744 rep.th.source = th->dest; in tcp_v4_send_ack()
745 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
746 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
747 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
748 rep.th.ack = 1; in tcp_v4_send_ack()
749 rep.th.window = htons(win); in tcp_v4_send_ack()
755 rep.opt[offset++] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_ack()
760 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
762 tcp_v4_md5_hash_hdr((__u8 *) &rep.opt[offset], in tcp_v4_send_ack()
764 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()