Lines Matching refs:rep
587 } rep; in tcp_v4_send_reset() local
609 memset(&rep, 0, sizeof(rep)); in tcp_v4_send_reset()
610 rep.th.dest = th->source; in tcp_v4_send_reset()
611 rep.th.source = th->dest; in tcp_v4_send_reset()
612 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
613 rep.th.rst = 1; in tcp_v4_send_reset()
616 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
618 rep.th.ack = 1; in tcp_v4_send_reset()
619 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
624 arg.iov[0].iov_base = (unsigned char *)&rep; in tcp_v4_send_reset()
625 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
661 rep.opt[0] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_reset()
667 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
669 tcp_v4_md5_hash_hdr((__u8 *) &rep.opt[1], in tcp_v4_send_reset()
671 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
722 } rep; in tcp_v4_send_ack() local
725 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
728 arg.iov[0].iov_base = (unsigned char *)&rep; in tcp_v4_send_ack()
729 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
731 rep.opt[0] = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | in tcp_v4_send_ack()
734 rep.opt[1] = htonl(tsval); in tcp_v4_send_ack()
735 rep.opt[2] = htonl(tsecr); in tcp_v4_send_ack()
740 rep.th.dest = th->source; in tcp_v4_send_ack()
741 rep.th.source = th->dest; in tcp_v4_send_ack()
742 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
743 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
744 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
745 rep.th.ack = 1; in tcp_v4_send_ack()
746 rep.th.window = htons(win); in tcp_v4_send_ack()
752 rep.opt[offset++] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_ack()
757 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
759 tcp_v4_md5_hash_hdr((__u8 *) &rep.opt[offset], in tcp_v4_send_ack()
761 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()