Lines Matching refs:rep
748 } rep; in tcp_v4_send_reset() local
774 memset(&rep, 0, sizeof(rep)); in tcp_v4_send_reset()
775 rep.th.dest = th->source; in tcp_v4_send_reset()
776 rep.th.source = th->dest; in tcp_v4_send_reset()
777 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
778 rep.th.rst = 1; in tcp_v4_send_reset()
781 rep.th.seq = th->ack_seq; in tcp_v4_send_reset()
783 rep.th.ack = 1; in tcp_v4_send_reset()
784 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset()
789 arg.iov[0].iov_base = (unsigned char *)&rep; in tcp_v4_send_reset()
790 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_reset()
798 if (aoh && tcp_v4_ao_sign_reset(sk, skb, aoh, &arg, &rep.th, rep.opt)) in tcp_v4_send_reset()
851 rep.opt[0] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_reset()
857 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
859 tcp_v4_md5_hash_hdr((__u8 *) &rep.opt[1], in tcp_v4_send_reset()
861 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_reset()
865 if (rep.opt[0] == 0) { in tcp_v4_send_reset()
869 rep.opt[0] = mrst; in tcp_v4_send_reset()
871 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
947 } rep; in tcp_v4_send_ack() local
953 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
956 arg.iov[0].iov_base = (unsigned char *)&rep; in tcp_v4_send_ack()
957 arg.iov[0].iov_len = sizeof(rep.th); in tcp_v4_send_ack()
959 rep.opt[0] = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | in tcp_v4_send_ack()
962 rep.opt[1] = htonl(tsval); in tcp_v4_send_ack()
963 rep.opt[2] = htonl(tsecr); in tcp_v4_send_ack()
968 rep.th.dest = th->source; in tcp_v4_send_ack()
969 rep.th.source = th->dest; in tcp_v4_send_ack()
970 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
971 rep.th.seq = htonl(seq); in tcp_v4_send_ack()
972 rep.th.ack_seq = htonl(ack); in tcp_v4_send_ack()
973 rep.th.ack = 1; in tcp_v4_send_ack()
974 rep.th.window = htons(win); in tcp_v4_send_ack()
980 rep.opt[offset++] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_ack()
985 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
987 tcp_v4_md5_hash_hdr((__u8 *) &rep.opt[offset], in tcp_v4_send_ack()
989 ip_hdr(skb)->daddr, &rep.th); in tcp_v4_send_ack()
996 rep.opt[offset++] = htonl((TCPOPT_AO << 24) | in tcp_v4_send_ack()
1001 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
1003 tcp_ao_hash_hdr(AF_INET, (char *)&rep.opt[offset], in tcp_v4_send_ack()
1007 &rep.th, key->sne); in tcp_v4_send_ack()