Searched refs:tcph (Results 1 - 25 of 44) sorted by path

12

/linux-master/net/ipv4/netfilter/
H A Dipt_ECN.c47 struct tcphdr _tcph, *tcph; local
51 tcph = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(_tcph), &_tcph);
52 if (!tcph)
56 tcph->ece == einfo->proto.tcp.ece) &&
58 tcph->cwr == einfo->proto.tcp.cwr))
61 if (skb_ensure_writable(skb, ip_hdrlen(skb) + sizeof(*tcph)))
63 tcph = (void *)ip_hdr(skb) + ip_hdrlen(skb);
65 oldval = ((__be16 *)tcph)[6];
67 tcph->ece = einfo->proto.tcp.ece;
69 tcph
[all...]
H A Dnf_reject_ipv4.c197 struct tcphdr *tcph; local
200 tcph = skb_put_zero(nskb, sizeof(struct tcphdr));
201 tcph->source = oth->dest;
202 tcph->dest = oth->source;
203 tcph->doff = sizeof(struct tcphdr) / 4;
206 tcph->seq = oth->ack_seq;
208 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin +
211 tcph->ack = 1;
214 tcph->rst = 1;
215 tcph
[all...]
/linux-master/net/netfilter/
H A Dxt_TCPOPTSTRIP.c34 struct tcphdr *tcph, _th; local
44 tcph = skb_header_pointer(skb, tcphoff, sizeof(_th), &_th);
45 if (!tcph)
48 tcp_hdrlen = tcph->doff * 4;
55 /* must reload tcph, might have been moved */
56 tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff);
57 opt = (u8 *)tcph;
79 inet_proto_csum_replace2(&tcph->check, skb, htons(o),
H A Dnf_conntrack_pptp.c497 const struct tcphdr *tcph; local
522 tcph = skb_header_pointer(skb, nexthdr_off, sizeof(_tcph), &_tcph);
523 if (!tcph)
526 nexthdr_off += tcph->doff * 4;
527 datalen = tcplen - tcph->doff * 4;
H A Dnf_conntrack_proto_tcp.c275 static unsigned int get_conntrack_index(const struct tcphdr *tcph) argument
277 if (tcph->rst) return TCP_RST_SET;
278 else if (tcph->syn) return (tcph->ack ? TCP_SYNACK_SET : TCP_SYN_SET);
279 else if (tcph->fin) return TCP_FIN_SET;
280 else if (tcph->ack) return TCP_ACK_SET;
316 const struct tcphdr *tcph)
320 return (seq + len - dataoff - tcph->doff*4
321 + (tcph->syn ? 1 : 0) + (tcph
313 segment_seq_plus_len(__u32 seq, size_t len, unsigned int dataoff, const struct tcphdr *tcph) argument
333 tcp_options(const struct sk_buff *skb, unsigned int dataoff, const struct tcphdr *tcph, struct ip_ct_tcp_state *state) argument
391 tcp_sack(const struct sk_buff *skb, unsigned int dataoff, const struct tcphdr *tcph, __u32 *sack) argument
455 tcp_init_sender(struct ip_ct_tcp_state *sender, struct ip_ct_tcp_state *receiver, const struct sk_buff *skb, unsigned int dataoff, const struct tcphdr *tcph, u32 end, u32 win, enum ip_conntrack_dir dir) argument
510 tcp_in_window(struct nf_conn *ct, enum ip_conntrack_dir dir, unsigned int index, const struct sk_buff *skb, unsigned int dataoff, const struct tcphdr *tcph, const struct nf_hook_state *hook_state) argument
[all...]
/linux-master/drivers/infiniband/hw/cxgb4/
H A Dcm.c2461 const struct tcphdr *tcph; local
2465 tcph = (const void *)(req + 1) + ETH_HDR_LEN_G(hlen) +
2468 tcph = (const void *)(req + 1) +
2470 if (tcph->ece && tcph->cwr)
4063 struct tcphdr *tcph; local
4128 tcph = (struct tcphdr *)(iph + 1);
4130 skb_set_transport_header(skb, (void *)tcph - (void *)rss);
4134 ntohl(iph->daddr), ntohs(tcph->dest), ntohl(iph->saddr),
4135 ntohs(tcph
[all...]
/linux-master/drivers/infiniband/hw/irdma/
H A Dcm.c310 struct tcphdr *tcph; local
338 pktsize = sizeof(*tcph) + opts_len + hdr_len + pd_len;
340 memset(buf, 0, sizeof(*tcph));
343 sqbuf->tcphlen = sizeof(*tcph) + opts_len;
346 tcph = (struct tcphdr *)buf;
347 buf += sizeof(*tcph);
349 tcph->source = htons(cm_node->loc_port);
350 tcph->dest = htons(cm_node->rem_port);
351 tcph->seq = htonl(cm_node->tcp_cntxt.loc_seq_num);
355 tcph
420 struct tcphdr *tcph; local
747 irdma_handle_tcp_options(struct irdma_cm_node *cm_node, struct tcphdr *tcph, int optionsize, int passive) argument
2620 irdma_check_syn(struct irdma_cm_node *cm_node, struct tcphdr *tcph) argument
2635 irdma_check_seq(struct irdma_cm_node *cm_node, struct tcphdr *tcph) argument
2678 struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph; local
2744 struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph; local
2817 struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph; local
2901 struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph; local
3143 struct tcphdr *tcph; local
[all...]
H A Dpuda.h63 u8 *tcph; member in struct:irdma_puda_buf
H A Dutils.c1420 struct tcphdr *tcph = (struct tcphdr *)buf->tcph; local
1430 loc_port = ntohs(tcph->dest);
1431 rem_port = ntohs(tcph->source);
1451 struct tcphdr *tcph = (struct tcphdr *)buf->tcph; local
1454 cm_node->tcp_cntxt.loc_seq_num = ntohl(tcph->ack_seq);
1513 struct tcphdr *tcph; local
1521 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen);
1524 tcph
1536 struct tcphdr *tcph; local
1558 struct tcphdr *tcph; local
1611 struct tcphdr *tcph; local
[all...]
/linux-master/drivers/net/ethernet/broadcom/
H A Dtg3.c7946 struct tcphdr *tcph = NULL; local
8014 tcph = tcp_hdr(skb);
8015 tcp_csum = tcph->check;
8020 tcph->check = 0;
8023 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr,
8150 tcph->check = tcp_csum;
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.c1012 const struct tcphdr *tcph; local
1056 tcph = (struct tcphdr *)((u8 *)(req + 1) +
1058 if (tcph->ece && tcph->cwr)
1299 struct tcphdr *tcph; local
1354 tcph = (struct tcphdr *)(iph + 1);
1358 tcph = (struct tcphdr *)(ip6h + 1);
1373 tcp_rsk(oreq)->rcv_isn = ntohl(tcph->seq);
1374 chtls_set_req_port(oreq, tcph->source, tcph
[all...]
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc.c434 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); local
436 tcph->check = 0;
478 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); local
480 tcph->check = csum_final;
/linux-master/drivers/net/ethernet/ibm/
H A Dibmveth.c1217 struct tcphdr *tcph; local
1246 tcph = (struct tcphdr *)(skb->data + offset);
1250 skb_shinfo(skb)->gso_size = ntohs(tcph->check);
1251 tcph->check = 0;
1255 hdr_len = offset + tcph->doff * 4;
1310 struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); local
1312 if (tcph->check == 0x0000) {
1316 tcph->check =
1320 tcph->check =
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_fdir.c399 struct tcphdr *tcph = (struct tcphdr *)hdr->buffer; local
404 tcph->source = fltr->ip_data.src_port;
409 tcph->dest = fltr->ip_data.dst_port;
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_virtchnl_fdir.c821 struct tcphdr *tcph; local
865 tcph = (struct tcphdr *)hdr->buffer;
873 input->ip.v4.src_port = tcph->source;
874 input->ip.v4.dst_port = tcph->dest;
876 input->ip.v6.src_port = tcph->source;
877 input->ip.v6.dst_port = tcph->dest;
/linux-master/drivers/net/ethernet/neterion/
H A Ds2io.c8208 (lro->tcph->source != tcp->source) ||
8209 (lro->tcph->dest != tcp->dest))
8226 lro->tcph = tcp;
8250 struct tcphdr *tcp = lro->tcph;
8361 struct tcphdr *tcph; local
8374 tcph = (struct tcphdr *)*tcp;
8375 *tcp_len = get_l4_pyld_length(ip, tcph);
8379 if (check_for_socket_match(l_lro, ip, tcph))
8384 if ((*lro)->tcp_next_seq != ntohl(tcph->seq)) {
8389 ntohl(tcph
[all...]
H A Ds2io.h677 struct tcphdr *tcph; member in struct:lro
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_iwarp.c1679 struct tcphdr *tcph; local
1756 tcph = (struct tcphdr *)((u8 *)iph + ip_hlen);
1758 if (!tcph->syn) {
1761 iph->ihl, tcph->source, tcph->dest);
1765 cm_info->local_port = ntohs(tcph->dest);
1766 cm_info->remote_port = ntohs(tcph->source);
/linux-master/drivers/net/ethernet/wangxun/libwx/
H A Dwx_lib.c1218 struct tcphdr *tcph; local
1236 tcph = enc ? inner_tcp_hdr(skb) : tcp_hdr(skb);
1239 tcph->check = ~csum_tcpudp_magic(iph->saddr,
1248 tcph = enc ? inner_tcp_hdr(skb) : tcp_hdr(skb);
1250 tcph->check = ~csum_ipv6_magic(&ipv6h->saddr,
/linux-master/drivers/net/vmxnet3/
H A Dvmxnet3_drv.c1022 struct tcphdr *tcph = inner_tcp_hdr(skb); local
1027 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0,
1032 tcph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, 0,
1041 struct tcphdr *tcph = tcp_hdr(skb); local
1047 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0,
/linux-master/drivers/target/iscsi/cxgbit/
H A Dcxgbit_cm.c1133 const struct tcphdr *tcph; local
1193 tcph = (struct tcphdr *)((u8 *)(req + 1) +
1196 tcph = (struct tcphdr *)((u8 *)(req + 1) +
1199 if (tcph->ece && tcph->cwr)
/linux-master/net/core/
H A Dtso.c28 struct tcphdr *tcph = (struct tcphdr *)hdr; local
30 put_unaligned_be32(tso->tcp_seq, &tcph->seq);
34 tcph->psh = 0;
35 tcph->fin = 0;
36 tcph->rst = 0;
/linux-master/net/ipv4/
H A Droute.c3126 struct tcphdr *tcph; local
3128 tcph = skb_put_zero(skb, sizeof(struct tcphdr));
3129 tcph->source = sport;
3130 tcph->dest = dport;
3131 tcph->doff = sizeof(struct tcphdr) / 4;
3132 tcph->rst = 1;
3133 tcph->check = ~tcp_v4_check(sizeof(struct tcphdr),
/linux-master/net/ipv6/netfilter/
H A Dnf_reject_ipv6.c225 struct tcphdr *tcph; local
229 tcph = skb_put(nskb, sizeof(struct tcphdr));
231 tcph->doff = sizeof(struct tcphdr)/4;
232 tcph->source = oth->dest;
233 tcph->dest = oth->source;
237 tcph->seq = oth->ack_seq;
238 tcph->ack_seq = 0;
241 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin +
243 tcph->seq = 0;
247 ((u_int8_t *)tcph)[1
[all...]
/linux-master/net/netfilter/ipvs/
H A Dip_vs_proto_tcp.c105 tcp_fast_csum_update(int af, struct tcphdr *tcph, argument
112 tcph->check =
115 ~csum_unfold(tcph->check))));
118 tcph->check =
121 ~csum_unfold(tcph->check))));
126 tcp_partial_csum_update(int af, struct tcphdr *tcph, argument
133 tcph->check =
136 csum_unfold(tcph->check))));
139 tcph->check =
142 csum_unfold(tcph
150 struct tcphdr *tcph; local
228 struct tcphdr *tcph; local
[all...]

Completed in 557 milliseconds

12