Home
last modified time | relevance | path

Searched refs:oth (Results 1 – 30 of 30) sorted by relevance

/linux-4.4.14/net/ipv4/netfilter/
Dnf_reject_ipv4.c22 const struct tcphdr *oth; in nf_reject_ip_tcphdr_get() local
28 oth = skb_header_pointer(oldskb, ip_hdrlen(oldskb), in nf_reject_ip_tcphdr_get()
30 if (oth == NULL) in nf_reject_ip_tcphdr_get()
34 if (oth->rst) in nf_reject_ip_tcphdr_get()
41 return oth; in nf_reject_ip_tcphdr_get()
71 const struct tcphdr *oth) in nf_reject_ip_tcphdr_put() argument
79 tcph->source = oth->dest; in nf_reject_ip_tcphdr_put()
80 tcph->dest = oth->source; in nf_reject_ip_tcphdr_put()
83 if (oth->ack) { in nf_reject_ip_tcphdr_put()
84 tcph->seq = oth->ack_seq; in nf_reject_ip_tcphdr_put()
[all …]
/linux-4.4.14/net/ipv6/netfilter/
Dnf_reject_ipv6.c93 const struct tcphdr *oth, unsigned int otcplen) in nf_reject_ip6_tcphdr_put() argument
102 tcph->source = oth->dest; in nf_reject_ip6_tcphdr_put()
103 tcph->dest = oth->source; in nf_reject_ip6_tcphdr_put()
105 if (oth->ack) { in nf_reject_ip6_tcphdr_put()
107 tcph->seq = oth->ack_seq; in nf_reject_ip6_tcphdr_put()
111 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin + in nf_reject_ip6_tcphdr_put()
112 otcplen - (oth->doff<<2)); in nf_reject_ip6_tcphdr_put()
/linux-4.4.14/net/bridge/netfilter/
Dnft_reject_bridge.c49 const struct tcphdr *oth; in nft_reject_br_send_v4_tcp_reset() local
55 oth = nf_reject_ip_tcphdr_get(oldskb, &_oth, hook); in nft_reject_br_send_v4_tcp_reset()
56 if (!oth) in nft_reject_br_send_v4_tcp_reset()
67 nf_reject_ip_tcphdr_put(nskb, oldskb, oth); in nft_reject_br_send_v4_tcp_reset()
150 const struct tcphdr *oth; in nft_reject_br_send_v6_tcp_reset() local
158 oth = nf_reject_ip6_tcphdr_get(oldskb, &_oth, &otcplen, hook); in nft_reject_br_send_v6_tcp_reset()
159 if (!oth) in nft_reject_br_send_v6_tcp_reset()
170 nf_reject_ip6_tcphdr_put(nskb, oldskb, oth, otcplen); in nft_reject_br_send_v6_tcp_reset()
/linux-4.4.14/drivers/net/slip/
Dslhc.c239 struct tcphdr *th, *oth; in slhc_compress() local
345 oth = &cs->cs_tcp; in slhc_compress()
367 } else if(th->urg_ptr != oth->urg_ptr){ in slhc_compress()
374 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ in slhc_compress()
378 if((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){ in slhc_compress()
384 if((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){ in slhc_compress()
/linux-4.4.14/net/decnet/
Ddn_nsp_out.c333 static __le16 *dn_nsp_mk_data_header(struct sock *sk, struct sk_buff *skb, int oth) in dn_nsp_mk_data_header() argument
337 __le16 *ptr = dn_mk_ack_header(sk, skb, cb->nsp_flags, 11, oth); in dn_nsp_mk_data_header()
339 if (unlikely(oth)) { in dn_nsp_mk_data_header()
352 gfp_t gfp, int oth) in dn_nsp_queue_xmit() argument
359 dn_nsp_mk_data_header(sk, skb, oth); in dn_nsp_queue_xmit()
368 if (oth) in dn_nsp_queue_xmit()
Ddn_nsp_in.c136 static int dn_process_ack(struct sock *sk, struct sk_buff *skb, int oth) in dn_process_ack() argument
150 if (oth) in dn_process_ack()
163 if (oth) in dn_process_ack()
/linux-4.4.14/include/net/netfilter/ipv4/
Dnf_reject.h17 const struct tcphdr *oth);
/linux-4.4.14/include/net/netfilter/ipv6/
Dnf_reject.h19 const struct tcphdr *oth, unsigned int otcplen);
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dtrace.c60 ohdr = &hdr->u.oth; in ibhdr_exhdr_len()
62 ohdr = &hdr->u.l.oth; in ibhdr_exhdr_len()
Ddiag.c1307 ohdr = &hdr->u.oth; /* LRH + BTH + DETH */ in hfi1_filter_mad_mgmt_class()
1309 ohdr = &hdr->u.l.oth; /* LRH + GRH + BTH + DETH */ in hfi1_filter_mad_mgmt_class()
1340 ohdr = &hdr->u.oth; /* LRH + BTH + DETH */ in hfi1_filter_qp_number()
1342 ohdr = &hdr->u.l.oth; /* LRH + GRH + BTH + DETH */ in hfi1_filter_qp_number()
1370 ohdr = &hdr->u.oth; in hfi1_filter_ibpacket_type()
1372 ohdr = &hdr->u.l.oth; in hfi1_filter_ibpacket_type()
1424 ohdr = &hdr->u.oth; in hfi1_filter_ib_pkey()
1426 ohdr = &hdr->u.l.oth; in hfi1_filter_ib_pkey()
Dud.c361 ohdr = &qp->s_hdr->ibh.u.l.oth; in hfi1_make_ud_req()
369 ohdr = &qp->s_hdr->ibh.u.oth; in hfi1_make_ud_req()
501 ohdr = &hdr.u.l.oth; in return_cnp()
505 ohdr = &hdr.u.oth; in return_cnp()
Dverbs.c624 packet->ohdr = &hdr->u.oth; in hfi1_ib_rcv()
628 packet->ohdr = &hdr->u.l.oth; in hfi1_ib_rcv()
969 struct hfi1_other_headers *sohdr = &ahdr->ibh.u.oth; in build_verbs_tx_desc()
970 struct hfi1_other_headers *dohdr = &phdr->hdr.u.oth; in build_verbs_tx_desc()
975 sohdr = &ahdr->ibh.u.l.oth; in build_verbs_tx_desc()
976 dohdr = &phdr->hdr.u.l.oth; in build_verbs_tx_desc()
1263 ohdr = &hdr->u.l.oth; in egress_pkey_check()
1265 ohdr = &hdr->u.oth; in egress_pkey_check()
Ddriver.c287 ohdr = &hdr->u.oth; in rcv_hdrerr()
291 ohdr = &hdr->u.l.oth; in rcv_hdrerr()
589 ohdr = &hdr->u.oth; in prescan_rxq()
591 ohdr = &hdr->u.l.oth; in prescan_rxq()
Drc.c278 ohdr = &qp->s_hdr->ibh.u.oth; in hfi1_make_rc_req()
280 ohdr = &qp->s_hdr->ibh.u.l.oth; in hfi1_make_rc_req()
717 ohdr = &hdr.u.l.oth; in hfi1_send_rc_ack()
720 ohdr = &hdr.u.oth; in hfi1_send_rc_ack()
998 ohdr = &hdr->u.oth; in hfi1_rc_send_complete()
1000 ohdr = &hdr->u.l.oth; in hfi1_rc_send_complete()
2397 ohdr = &hdr->u.oth; in hfi1_rc_hdrerr()
2399 ohdr = &hdr->u.l.oth; in hfi1_rc_hdrerr()
Duc.c95 ohdr = &qp->s_hdr->ibh.u.oth; in hfi1_make_uc_req()
97 ohdr = &qp->s_hdr->ibh.u.l.oth; in hfi1_make_uc_req()
Dtrace.h480 ohdr = &hdr->u.oth;
482 ohdr = &hdr->u.l.oth;
585 ohdr = &hdr->u.oth;
587 ohdr = &hdr->u.l.oth;
Dverbs.h190 struct hfi1_other_headers oth; member
192 struct hfi1_other_headers oth; member
Druc.c698 #define BTH2_OFFSET (offsetof(struct hfi1_pio_header, hdr.u.oth.bth[2]) / 4)
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_uc.c75 ohdr = &qp->s_hdr->u.oth; in qib_make_uc_req()
77 ohdr = &qp->s_hdr->u.l.oth; in qib_make_uc_req()
257 ohdr = &hdr->u.oth; in qib_uc_rcv()
260 ohdr = &hdr->u.l.oth; in qib_uc_rcv()
Dqib_ud.c331 ohdr = &qp->s_hdr->u.l.oth; in qib_make_ud_req()
339 ohdr = &qp->s_hdr->u.oth; in qib_make_ud_req()
442 ohdr = &hdr->u.oth; in qib_ud_rcv()
445 ohdr = &hdr->u.l.oth; in qib_ud_rcv()
Dqib_rc.c247 ohdr = &qp->s_hdr->u.oth; in qib_make_rc_req()
249 ohdr = &qp->s_hdr->u.l.oth; in qib_make_rc_req()
676 ohdr = &hdr.u.oth; in qib_send_rc_ack()
683 ohdr = &hdr.u.l.oth; in qib_send_rc_ack()
985 ohdr = &hdr->u.oth; in qib_rc_send_complete()
987 ohdr = &hdr->u.l.oth; in qib_rc_send_complete()
1882 ohdr = &hdr->u.oth; in qib_rc_rcv()
1885 ohdr = &hdr->u.l.oth; in qib_rc_rcv()
Dqib_driver.c330 ohdr = &hdr->u.oth; in qib_rcv_hdrerr()
334 ohdr = &hdr->u.l.oth; in qib_rcv_hdrerr()
Dqib_verbs.h194 struct qib_other_headers oth; member
196 struct qib_other_headers oth; member
Dqib_verbs.c652 ohdr = &hdr->u.oth; in qib_ib_rcv()
656 ohdr = &hdr->u.l.oth; in qib_ib_rcv()
Dqib_iba7322.c1438 .u.oth.bth[0] = cpu_to_be32( in flush_fifo()
1440 .u.oth.bth[1] = cpu_to_be32(0), in flush_fifo()
1441 .u.oth.bth[2] = cpu_to_be32(0), in flush_fifo()
1442 .u.oth.u.ud.deth[0] = cpu_to_be32(0), in flush_fifo()
1443 .u.oth.u.ud.deth[1] = cpu_to_be32(0), in flush_fifo()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_uc.c75 ohdr = &qp->s_hdr.u.oth; in ipath_make_uc_req()
77 ohdr = &qp->s_hdr.u.l.oth; in ipath_make_uc_req()
259 ohdr = &hdr->u.oth; in ipath_uc_rcv()
264 ohdr = &hdr->u.l.oth; in ipath_uc_rcv()
Dipath_ud.c332 ohdr = &qp->s_hdr.u.l.oth; in ipath_make_ud_req()
340 ohdr = &qp->s_hdr.u.oth; in ipath_make_ud_req()
423 ohdr = &hdr->u.oth; in ipath_ud_rcv()
429 ohdr = &hdr->u.l.oth; in ipath_ud_rcv()
Dipath_rc.c228 ohdr = &qp->s_hdr.u.oth; in ipath_make_rc_req()
230 ohdr = &qp->s_hdr.u.l.oth; in ipath_make_rc_req()
653 ohdr = &hdr.u.oth; in send_rc_ack()
661 ohdr = &hdr.u.l.oth; in send_rc_ack()
1591 ohdr = &hdr->u.oth; in ipath_rc_rcv()
1596 ohdr = &hdr->u.l.oth; in ipath_rc_rcv()
Dipath_verbs.h140 struct ipath_other_headers oth; member
142 struct ipath_other_headers oth; member
Dipath_verbs.c628 ohdr = &hdr->u.oth; in ipath_ib_rcv()
630 ohdr = &hdr->u.l.oth; in ipath_ib_rcv()