Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/include/net/netfilter/ipv4/
Dnf_reject.h17 const struct tcphdr *oth);
/linux-4.1.27/include/net/netfilter/ipv6/
Dnf_reject.h19 const struct tcphdr *oth, unsigned int otcplen);
/linux-4.1.27/drivers/infiniband/hw/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.c333 ohdr = &qp->s_hdr.u.l.oth; in ipath_make_ud_req()
341 ohdr = &qp->s_hdr.u.oth; in ipath_make_ud_req()
424 ohdr = &hdr->u.oth; in ipath_ud_rcv()
430 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.c615 ohdr = &hdr->u.oth; in ipath_ib_rcv()
617 ohdr = &hdr->u.l.oth; in ipath_ib_rcv()
/linux-4.1.27/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()
674 ohdr = &hdr.u.oth; in qib_send_rc_ack()
681 ohdr = &hdr.u.l.oth; in qib_send_rc_ack()
983 ohdr = &hdr->u.oth; in qib_rc_send_complete()
985 ohdr = &hdr->u.l.oth; in qib_rc_send_complete()
1880 ohdr = &hdr->u.oth; in qib_rc_rcv()
1883 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.c636 ohdr = &hdr->u.oth; in qib_ib_rcv()
640 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()