Searched refs:min (Results 1 - 25 of 119) sorted by relevance

12345

/net/netfilter/
H A Dnf_nat_proto_common.c22 const union nf_conntrack_man_proto *min,
32 return ntohs(port) >= ntohs(min->all) &&
44 unsigned int range_size, min, i; local
62 min = 1;
63 range_size = 511 - min + 1;
65 min = 600;
66 range_size = 1023 - min + 1;
69 min = 1024;
73 min = ntohs(range->min_proto.all);
74 range_size = ntohs(range->max_proto.all) - min
20 nf_nat_l4proto_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) argument
[all...]
H A Dxt_esp.c29 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument
33 invert ? '!' : ' ', min, spi, max);
34 r = (spi >= min && spi <= max) ^ invert;
H A Dnf_nat_proto_unknown.c22 const union nf_conntrack_man_proto *min,
20 unknown_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type manip_type, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) argument
H A Dxt_length.c29 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert;
39 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert;
H A Dnf_conntrack_extend.c128 enum nf_ct_ext_id min = 0, max = NF_CT_EXT_NUM - 1; local
132 min = type->id;
138 for (i = min; i <= max; i++) {
H A Dxt_TCPMSS.c85 newmss = min(dst_mtu(skb_dst(skb)), in_mtu) - minlen;
141 newmss = min(newmss, (u16)536);
143 newmss = min(newmss, (u16)1220);
/net/ipv4/netfilter/
H A Dnf_nat_proto_gre.c50 unsigned int min, i, range_size; local
64 min = 1;
67 min = ntohs(range->min_proto.gre.key);
68 range_size = ntohs(range->max_proto.gre.key) - min + 1;
71 pr_debug("min = %u, range_size = %u\n", min, range_size);
74 *keyptr = htons(min + key % range_size);
H A Dipt_ah.c23 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument
27 invert ? '!' : ' ', min, spi, max);
28 r=(spi >= min && spi <= max) ^ invert;
H A Dnf_nat_proto_icmp.c23 const union nf_conntrack_man_proto *min,
26 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) &&
21 icmp_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) argument
/net/phonet/
H A Dsysctl.c51 void phonet_get_local_port_range(int *min, int *max) argument
57 if (min)
58 *min = local_port_range[0];
/net/ipv6/netfilter/
H A Dip6t_ah.c28 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument
33 invert ? '!' : ' ', min, spi, max);
34 r = (spi >= min && spi <= max) ^ invert;
H A Dip6t_mh.c30 type_match(u_int8_t min, u_int8_t max, u_int8_t type, bool invert) argument
32 return (type >= min && type <= max) ^ invert;
H A Dip6t_frag.c27 id_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) argument
31 min, id, max);
32 r = (id >= min && id <= max) ^ invert;
H A Dnf_nat_proto_icmpv6.c25 const union nf_conntrack_man_proto *min,
28 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) &&
23 icmpv6_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) argument
H A Dip6t_rt.c29 segsleft_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) argument
33 invert ? '!' : ' ', min, id, max);
34 r = (id >= min && id <= max) ^ invert;
/net/dccp/ccids/lib/
H A Dloss_interval.h63 return min(lh->counter, (u8)LIH_SIZE);
/net/ipv4/
H A Dtcp_scalable.c28 tcp_cong_avoid_ai(tp, min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT));
H A Dtcp_yeah.c87 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)){
143 * calculations. This is the min RTT seen during the
144 * last RTT. Taking the min filters out the effects
162 u32 reduction = min(queue / TCP_YEAH_GAMMA ,
178 yeah->doing_reno_now = min(yeah->doing_reno_now + 1,
216 reduction = min( reduction, max(tp->snd_cwnd>>1, 2U) );
H A Dtcp_hybla.c129 increment = ((1 << min(ca->rho, 16U)) *
160 tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh);
H A Dtcp_vegas.c105 * o min-filter RTT samples from within an RTT to get the current
106 * propagation delay + queuing delay (we are min-filtering to try to
108 * o min-filter RTT samples from a much longer window (forever for now)
126 /* Find the min RTT during the last RTT to find
129 vegas->minRTT = min(vegas->minRTT, vrtt);
163 return min(tp->snd_ssthresh, tp->snd_cwnd-1);
208 * calculations. This is the min RTT seen during the
209 * last RTT. Taking the min filters out the effects
241 tp->snd_cwnd = min(tp->snd_cwnd, (u32)target_cwnd+1);
H A Dtcp_timer.c114 mss = min(sysctl_tcp_base_mss, mss);
227 icsk->icsk_ack.ato = min(icsk->icsk_ack.ato << 1, icsk->icsk_rto);
428 min(icsk->icsk_rto, TCP_RESOURCE_PROBE_INTERVAL),
466 icsk->icsk_rto = min(__tcp_set_rto(tp), TCP_RTO_MAX);
469 icsk->icsk_rto = min(icsk->icsk_rto << 1, TCP_RTO_MAX);
/net/rds/
H A Dtcp_recv.c86 to_copy = min(tmp.iov_len, size);
87 to_copy = min(to_copy, skb->len - skb_off);
210 to_copy = min(tc->t_tinc_hdr_rem, left);
236 to_copy = min(tc->t_tinc_data_rem, left);
H A Dtransport.c129 avail -= min(avail, part);
/net/dccp/
H A Dtimer.c113 min(icsk->icsk_rto,
121 icsk->icsk_rto = min(icsk->icsk_rto << 1, DCCP_RTO_MAX);
224 icsk->icsk_ack.ato = min(icsk->icsk_ack.ato << 1,
/net/decnet/
H A Ddn_neigh.c464 unsigned char *min = NULL; local
469 if (!min || (*base < *min))
470 min = base;
474 if (!min)
477 return (*min < priority) ? (min - 6) : NULL;

Completed in 641 milliseconds

12345