Searched refs:nth (Results 1 - 31 of 31) sorted by relevance

/linux-4.4.14/net/ipv6/netfilter/
H A Dip6t_SYNPROXY.c43 struct ipv6hdr *niph, struct tcphdr *nth, synproxy_send_tcp()
50 nth->check = ~tcp_v6_check(tcp_hdr_size, &niph->saddr, &niph->daddr, 0); synproxy_send_tcp()
52 nskb->csum_start = (unsigned char *)nth - nskb->head; synproxy_send_tcp()
59 fl6.fl6_sport = nth->source; synproxy_send_tcp()
60 fl6.fl6_dport = nth->dest; synproxy_send_tcp()
93 struct tcphdr *nth; synproxy_send_client_synack() local
99 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); synproxy_send_client_synack()
109 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); synproxy_send_client_synack()
110 nth->source = th->dest; synproxy_send_client_synack()
111 nth->dest = th->source; synproxy_send_client_synack()
112 nth->seq = htonl(__cookie_v6_init_sequence(iph, th, &mss)); synproxy_send_client_synack()
113 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_synack()
114 tcp_flag_word(nth) = TCP_FLAG_SYN | TCP_FLAG_ACK; synproxy_send_client_synack()
116 tcp_flag_word(nth) |= TCP_FLAG_ECE; synproxy_send_client_synack()
117 nth->doff = tcp_hdr_size / 4; synproxy_send_client_synack()
118 nth->window = 0; synproxy_send_client_synack()
119 nth->check = 0; synproxy_send_client_synack()
120 nth->urg_ptr = 0; synproxy_send_client_synack()
122 synproxy_build_options(nth, opts); synproxy_send_client_synack()
125 niph, nth, tcp_hdr_size); synproxy_send_client_synack()
135 struct tcphdr *nth; synproxy_send_server_syn() local
140 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); synproxy_send_server_syn()
150 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); synproxy_send_server_syn()
151 nth->source = th->source; synproxy_send_server_syn()
152 nth->dest = th->dest; synproxy_send_server_syn()
153 nth->seq = htonl(recv_seq - 1); synproxy_send_server_syn()
157 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); synproxy_send_server_syn()
158 tcp_flag_word(nth) = TCP_FLAG_SYN; synproxy_send_server_syn()
160 tcp_flag_word(nth) |= TCP_FLAG_ECE | TCP_FLAG_CWR; synproxy_send_server_syn()
161 nth->doff = tcp_hdr_size / 4; synproxy_send_server_syn()
162 nth->window = th->window; synproxy_send_server_syn()
163 nth->check = 0; synproxy_send_server_syn()
164 nth->urg_ptr = 0; synproxy_send_server_syn()
166 synproxy_build_options(nth, opts); synproxy_send_server_syn()
169 niph, nth, tcp_hdr_size); synproxy_send_server_syn()
180 struct tcphdr *nth; synproxy_send_server_ack() local
185 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); synproxy_send_server_ack()
195 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); synproxy_send_server_ack()
196 nth->source = th->dest; synproxy_send_server_ack()
197 nth->dest = th->source; synproxy_send_server_ack()
198 nth->seq = htonl(ntohl(th->ack_seq)); synproxy_send_server_ack()
199 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_server_ack()
200 tcp_flag_word(nth) = TCP_FLAG_ACK; synproxy_send_server_ack()
201 nth->doff = tcp_hdr_size / 4; synproxy_send_server_ack()
202 nth->window = htons(state->seen[IP_CT_DIR_ORIGINAL].td_maxwin); synproxy_send_server_ack()
203 nth->check = 0; synproxy_send_server_ack()
204 nth->urg_ptr = 0; synproxy_send_server_ack()
206 synproxy_build_options(nth, opts); synproxy_send_server_ack()
208 synproxy_send_tcp(snet, skb, nskb, NULL, 0, niph, nth, tcp_hdr_size); synproxy_send_server_ack()
218 struct tcphdr *nth; synproxy_send_client_ack() local
223 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); synproxy_send_client_ack()
233 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); synproxy_send_client_ack()
234 nth->source = th->source; synproxy_send_client_ack()
235 nth->dest = th->dest; synproxy_send_client_ack()
236 nth->seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_ack()
237 nth->ack_seq = th->ack_seq; synproxy_send_client_ack()
238 tcp_flag_word(nth) = TCP_FLAG_ACK; synproxy_send_client_ack()
239 nth->doff = tcp_hdr_size / 4; synproxy_send_client_ack()
240 nth->window = htons(ntohs(th->window) >> opts->wscale); synproxy_send_client_ack()
241 nth->check = 0; synproxy_send_client_ack()
242 nth->urg_ptr = 0; synproxy_send_client_ack()
244 synproxy_build_options(nth, opts); synproxy_send_client_ack()
247 niph, nth, tcp_hdr_size); synproxy_send_client_ack()
40 synproxy_send_tcp(const struct synproxy_net *snet, const struct sk_buff *skb, struct sk_buff *nskb, struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, struct ipv6hdr *niph, struct tcphdr *nth, unsigned int tcp_hdr_size) synproxy_send_tcp() argument
/linux-4.4.14/net/ipv4/netfilter/
H A Dipt_SYNPROXY.c45 struct iphdr *niph, struct tcphdr *nth, synproxy_send_tcp()
50 nth->check = ~tcp_v4_check(tcp_hdr_size, niph->saddr, niph->daddr, 0); synproxy_send_tcp()
52 nskb->csum_start = (unsigned char *)nth - nskb->head; synproxy_send_tcp()
80 struct tcphdr *nth; synproxy_send_client_synack() local
86 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); synproxy_send_client_synack()
96 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); synproxy_send_client_synack()
97 nth->source = th->dest; synproxy_send_client_synack()
98 nth->dest = th->source; synproxy_send_client_synack()
99 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); synproxy_send_client_synack()
100 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_synack()
101 tcp_flag_word(nth) = TCP_FLAG_SYN | TCP_FLAG_ACK; synproxy_send_client_synack()
103 tcp_flag_word(nth) |= TCP_FLAG_ECE; synproxy_send_client_synack()
104 nth->doff = tcp_hdr_size / 4; synproxy_send_client_synack()
105 nth->window = 0; synproxy_send_client_synack()
106 nth->check = 0; synproxy_send_client_synack()
107 nth->urg_ptr = 0; synproxy_send_client_synack()
109 synproxy_build_options(nth, opts); synproxy_send_client_synack()
112 niph, nth, tcp_hdr_size); synproxy_send_client_synack()
122 struct tcphdr *nth; synproxy_send_server_syn() local
127 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); synproxy_send_server_syn()
137 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); synproxy_send_server_syn()
138 nth->source = th->source; synproxy_send_server_syn()
139 nth->dest = th->dest; synproxy_send_server_syn()
140 nth->seq = htonl(recv_seq - 1); synproxy_send_server_syn()
144 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); synproxy_send_server_syn()
145 tcp_flag_word(nth) = TCP_FLAG_SYN; synproxy_send_server_syn()
147 tcp_flag_word(nth) |= TCP_FLAG_ECE | TCP_FLAG_CWR; synproxy_send_server_syn()
148 nth->doff = tcp_hdr_size / 4; synproxy_send_server_syn()
149 nth->window = th->window; synproxy_send_server_syn()
150 nth->check = 0; synproxy_send_server_syn()
151 nth->urg_ptr = 0; synproxy_send_server_syn()
153 synproxy_build_options(nth, opts); synproxy_send_server_syn()
156 niph, nth, tcp_hdr_size); synproxy_send_server_syn()
167 struct tcphdr *nth; synproxy_send_server_ack() local
172 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); synproxy_send_server_ack()
182 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); synproxy_send_server_ack()
183 nth->source = th->dest; synproxy_send_server_ack()
184 nth->dest = th->source; synproxy_send_server_ack()
185 nth->seq = htonl(ntohl(th->ack_seq)); synproxy_send_server_ack()
186 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_server_ack()
187 tcp_flag_word(nth) = TCP_FLAG_ACK; synproxy_send_server_ack()
188 nth->doff = tcp_hdr_size / 4; synproxy_send_server_ack()
189 nth->window = htons(state->seen[IP_CT_DIR_ORIGINAL].td_maxwin); synproxy_send_server_ack()
190 nth->check = 0; synproxy_send_server_ack()
191 nth->urg_ptr = 0; synproxy_send_server_ack()
193 synproxy_build_options(nth, opts); synproxy_send_server_ack()
195 synproxy_send_tcp(snet, skb, nskb, NULL, 0, niph, nth, tcp_hdr_size); synproxy_send_server_ack()
205 struct tcphdr *nth; synproxy_send_client_ack() local
210 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); synproxy_send_client_ack()
220 nth = (struct tcphdr *)skb_put(nskb, tcp_hdr_size); synproxy_send_client_ack()
221 nth->source = th->source; synproxy_send_client_ack()
222 nth->dest = th->dest; synproxy_send_client_ack()
223 nth->seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_ack()
224 nth->ack_seq = th->ack_seq; synproxy_send_client_ack()
225 tcp_flag_word(nth) = TCP_FLAG_ACK; synproxy_send_client_ack()
226 nth->doff = tcp_hdr_size / 4; synproxy_send_client_ack()
227 nth->window = htons(ntohs(th->window) >> opts->wscale); synproxy_send_client_ack()
228 nth->check = 0; synproxy_send_client_ack()
229 nth->urg_ptr = 0; synproxy_send_client_ack()
231 synproxy_build_options(nth, opts); synproxy_send_client_ack()
234 niph, nth, tcp_hdr_size); synproxy_send_client_ack()
42 synproxy_send_tcp(const struct synproxy_net *snet, const struct sk_buff *skb, struct sk_buff *nskb, struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, struct iphdr *niph, struct tcphdr *nth, unsigned int tcp_hdr_size) synproxy_send_tcp() argument
/linux-4.4.14/include/uapi/linux/netfilter/
H A Dxt_statistic.h31 } nth; member in union:xt_statistic_info::__anon14311
/linux-4.4.14/net/netfilter/
H A Dxt_statistic.c46 nval = (oval == info->u.nth.every) ? 0 : oval + 1; statistic_mt()
67 atomic_set(&info->master->count, info->u.nth.count); statistic_mt_check()
/linux-4.4.14/drivers/staging/unisys/include/
H A Dchannel.h474 * Tries to insert the prebuilt signal pointed to by pSignal into the nth
479 * Queue: (IN) nth Queue of the IO Channel
496 * Removes one signal from Channel pChannel's nth Queue at the
502 * Queue: (IN) nth Queue of the IO Channel
518 * Removes all signals present in Channel pChannel's nth Queue at the
524 * Queue: (IN) nth Queue of the IO Channel
544 * Queue: (IN) nth Queue of the IO Channel
/linux-4.4.14/drivers/staging/unisys/visorbus/
H A Dvmcallinterface.h39 * - the next 2 hex digits are the nth relative instance of within a
/linux-4.4.14/net/l2tp/
H A Dl2tp_core.h246 struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth);
249 struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth);
H A Dl2tp_core.c281 struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth) l2tp_session_find_nth() argument
290 if (++count > nth) { l2tp_session_find_nth()
348 struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth) l2tp_tunnel_find_nth() argument
356 if (++count > nth) { l2tp_tunnel_find_nth()
/linux-4.4.14/drivers/usb/renesas_usbhs/
H A Dmod_gadget.c419 int nth = le16_to_cpu(ctrl->wIndex) & USB_ENDPOINT_NUMBER_MASK; usbhsg_recip_run_handle() local
425 uep = usbhsg_gpriv_to_nth_uep(gpriv, nth); usbhsg_recip_run_handle()
452 dev_dbg(dev, "%s (pipe %d :%s)\n", handler->name, nth, msg); usbhsg_recip_run_handle()
/linux-4.4.14/fs/jbd2/
H A Drecovery.c663 * {nth transaction} do_one_pass()
682 * nth trans corrupt OR nth trans do_one_pass()
/linux-4.4.14/drivers/scsi/fnic/
H A Dvnic_rq.h147 /* Move the posted_index every nth descriptor vnic_rq_post()
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
H A Dvnic_rq.h139 /* Move the posted_index every nth descriptor vnic_rq_post()
/linux-4.4.14/drivers/acpi/acpica/
H A Dexconvrt.c327 /* Divide by nth factor of 10 */ acpi_ex_convert_to_ascii()
/linux-4.4.14/include/linux/
H A Dslab.h467 * Determine size used for the nth kmalloc cache.
H A Dperf_event.h873 * the nth caller. We only need a few of the regs: perf_arch_fetch_caller_regs()
/linux-4.4.14/drivers/scsi/
H A Dscsi_debug.c4127 MODULE_PARM_DESC(every_nth, "timeout every nth command(def=0)");
4458 int nth; every_nth_store() local
4460 if ((count > 0) && (1 == sscanf(buf, "%d", &nth))) { every_nth_store()
4461 scsi_debug_every_nth = nth; every_nth_store()
H A Dwd33c93.c150 * - A keyword in the 'nth' comma-separated command-line member will overwrite
151 * the 'nth' element of setup_args[]. A blank command-line member (in
H A Din2000.c170 * - A keyword in the 'nth' comma-separated command-line member will overwrite
171 * the 'nth' element of setup_args[]. A blank command-line member (in
/linux-4.4.14/drivers/staging/comedi/
H A Dcomedi.h49 /* length of nth chunk of firmware data -*/
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
H A Dich8lan.c4373 * consecutive sectors. The start index for the nth Hw sector e1000_erase_flash_bank_ich8lan()
4376 * The start index for the nth Hw sector can be calculated e1000_erase_flash_bank_ich8lan()
4378 * 10: The Hw sector is 8K bytes, nth sector = bank * 8192 e1000_erase_flash_bank_ich8lan()
4380 * 11: The Hw sector is 64K bytes, nth sector = bank * 65536 e1000_erase_flash_bank_ich8lan()
/linux-4.4.14/drivers/acpi/
H A Dnfit.c977 /* Retrieve the nth entry referencing this spa */ memdev_from_spa()
/linux-4.4.14/fs/ext2/
H A Dinode.c142 * pointer to (n+1)th node in the nth one. If @block is out of range
/linux-4.4.14/arch/powerpc/oprofile/
H A Dop_model_cell.c1030 * The 24 bit LFSR value for the nth number in the sequence can be
/linux-4.4.14/fs/ext4/
H A Dindirect.c55 * pointer to (n+1)th node in the nth one. If @block is out of range
/linux-4.4.14/drivers/gpu/drm/i915/
H A Di915_debugfs.c3629 * a frame (instead of every nth symbol): vlv_pipe_crc_ctl_reg()
3709 * a frame (instead of every nth symbol): i9xx_pipe_crc_ctl_reg()
/linux-4.4.14/drivers/of/
H A Dbase.c1148 * Search for a property in a device node and read nth 32-bit value from
/linux-4.4.14/drivers/staging/lustre/lustre/include/lustre/
H A Dlustre_idl.h3616 * nth update reply [4bytes_ret: other body]
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
H A Dphy.c2942 /* Edge flag turns on the 7nth bit on the PCDAC ath5k_combine_linear_pcdac_curves()
/linux-4.4.14/scripts/
H A Danalyze_suspend.py2374 .pf:checked ~ *:not(:nth-child(2)) {display: none;}\n\
/linux-4.4.14/net/ipv4/
H A Dtcp_input.c1442 * useful when hole on every nth skb pattern happens tcp_shift_skb_data()
/linux-4.4.14/kernel/sched/
H A Dfair.c4247 * on nth tick when cpu may be busy, then we have:

Completed in 1843 milliseconds