Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 26) sorted by relevance

12

/net/ipv6/
Dipv6_sockglue.c527 np->rxopt.bits.rxinfo = valbool; in do_ipv6_setsockopt()
534 np->rxopt.bits.rxoinfo = valbool; in do_ipv6_setsockopt()
541 np->rxopt.bits.rxhlim = valbool; in do_ipv6_setsockopt()
548 np->rxopt.bits.rxohlim = valbool; in do_ipv6_setsockopt()
555 np->rxopt.bits.srcrt = valbool; in do_ipv6_setsockopt()
562 np->rxopt.bits.osrcrt = valbool; in do_ipv6_setsockopt()
569 np->rxopt.bits.hopopts = valbool; in do_ipv6_setsockopt()
576 np->rxopt.bits.ohopopts = valbool; in do_ipv6_setsockopt()
583 np->rxopt.bits.dstopts = valbool; in do_ipv6_setsockopt()
590 np->rxopt.bits.odstopts = valbool; in do_ipv6_setsockopt()
[all …]
Ddatagram.c385 if (!np->rxopt.bits.rxpmtu) in ipv6_local_rxpmtu()
595 if (np->rxopt.bits.rxinfo) { in ip6_datagram_recv_common_ctl()
621 if (np->rxopt.bits.rxhlim) { in ip6_datagram_recv_specific_ctl()
626 if (np->rxopt.bits.rxtclass) { in ip6_datagram_recv_specific_ctl()
631 if (np->rxopt.bits.rxflow) { in ip6_datagram_recv_specific_ctl()
638 if (np->rxopt.bits.hopopts && (opt->flags & IP6SKB_HOPBYHOP)) { in ip6_datagram_recv_specific_ctl()
644 (np->rxopt.bits.dstopts || np->rxopt.bits.srcrt)) { in ip6_datagram_recv_specific_ctl()
665 if (np->rxopt.bits.dstopts) in ip6_datagram_recv_specific_ctl()
671 if (np->rxopt.bits.srcrt) in ip6_datagram_recv_specific_ctl()
689 if (np->rxopt.bits.rxoinfo) { in ip6_datagram_recv_specific_ctl()
[all …]
Dsyncookies.c193 np->rxopt.bits.rxinfo || np->rxopt.bits.rxoinfo || in cookie_v6_check()
194 np->rxopt.bits.rxhlim || np->rxopt.bits.rxohlim) { in cookie_v6_check()
Daf_inet6.c867 (np->rxopt.bits.hopopts || np->rxopt.bits.ohopopts)) || in ipv6_opt_accepted()
869 np->rxopt.bits.rxflow) || in ipv6_opt_accepted()
870 (opt->srcrt && (np->rxopt.bits.srcrt || in ipv6_opt_accepted()
871 np->rxopt.bits.osrcrt)) || in ipv6_opt_accepted()
873 (np->rxopt.bits.dstopts || np->rxopt.bits.odstopts))) in ipv6_opt_accepted()
Dtcp_ipv6.c841 np->rxopt.bits.rxinfo || in tcp_v6_init_req()
842 np->rxopt.bits.rxoinfo || np->rxopt.bits.rxhlim || in tcp_v6_init_req()
843 np->rxopt.bits.rxohlim || np->repflow)) { in tcp_v6_init_req()
1555 if (np->rxopt.bits.rxinfo || np->rxopt.bits.rxoinfo) in tcp_v6_do_rcv()
1557 if (np->rxopt.bits.rxhlim || np->rxopt.bits.rxohlim) in tcp_v6_do_rcv()
1559 if (np->rxopt.bits.rxflow || np->rxopt.bits.rxtclass) in tcp_v6_do_rcv()
Draw.c477 if (np->rxpmtu && np->rxopt.bits.rxpmtu) in rawv6_recvmsg()
/net/ipv4/
Dfib_trie.c116 #define IS_TNODE(n) ((n)->bits)
117 #define IS_LEAF(n) (!(n)->bits)
122 unsigned char bits; /* 2log(KEYLENGTH) bits needed */ member
138 #define tn_bits kv[0].bits
214 return (1ul << tn->bits) & ~(1ul); in child_length()
319 static struct tnode *tnode_alloc(int bits) in tnode_alloc() argument
324 if (bits > TNODE_VMALLOC_MAX) in tnode_alloc()
328 size = TNODE_SIZE(1ul << bits); in tnode_alloc()
365 l->bits = 0; in leaf_new()
375 static struct key_vector *tnode_new(t_key key, int pos, int bits) in tnode_new() argument
[all …]
Dinet_diag.c624 static int bitstring_match(const __be32 *a1, const __be32 *a2, int bits) in bitstring_match() argument
626 int words = bits >> 5; in bitstring_match()
628 bits &= 0x1f; in bitstring_match()
634 if (bits) { in bitstring_match()
641 mask = htonl((0xffffffff) << (32 - bits)); in bitstring_match()
/net/netfilter/
Dnf_conntrack_labels.c43 size = sizeof(labels->bits); in nf_connlabels_replace()
47 dst = (u32 *) labels->bits; in nf_connlabels_replace()
61 int nf_connlabels_get(struct net *net, unsigned int bits) in nf_connlabels_get() argument
63 if (BIT_WORD(bits) >= NF_CT_LABELS_MAX_SIZE / sizeof(long)) in nf_connlabels_get()
Dxt_connlabel.c36 if (test_bit(info->bit, labels->bits)) in connlabel_mt()
40 if (!test_and_set_bit(info->bit, labels->bits)) in connlabel_mt()
Dnf_conntrack_h323_asn1.c165 static int nf_h323_error_boundary(struct bitstr *bs, size_t bytes, size_t bits) in nf_h323_error_boundary() argument
167 bits += bs->bit; in nf_h323_error_boundary()
168 bytes += bits / BITS_PER_BYTE; in nf_h323_error_boundary()
169 if (bits % BITS_PER_BYTE > 0) in nf_h323_error_boundary()
Dnf_conntrack_netlink.c375 return nla_total_size(sizeof(labels->bits)); in ctnetlink_label_size()
389 if (labels->bits[i] != 0) in ctnetlink_dump_labels()
390 return nla_put(skb, CTA_LABELS, sizeof(labels->bits), in ctnetlink_dump_labels()
391 labels->bits); in ctnetlink_dump_labels()
393 } while (i < ARRAY_SIZE(labels->bits)); in ctnetlink_dump_labels()
DKconfig162 This option enables support for assigning user-defined flag bits
1185 names to bits is done by userspace.
1187 Unlike connmark, more than 32 flag bits may be assigned to a
1263 the same bits as DSCP).
1322 This match extension allows you to match a range of CPIs(16 bits)
Dnft_ct.c127 memcpy(dest, labels->bits, NF_CT_LABELS_MAX_SIZE); in nft_ct_get_eval()
/net/xfrm/
Dxfrm_hash.h32 static inline u32 __bits2mask32(__u8 bits) in __bits2mask32() argument
36 if (bits == 0) in __bits2mask32()
38 else if (bits < 32) in __bits2mask32()
39 mask32 <<= (32 - bits); in __bits2mask32()
/net/dccp/
Dipv6.c362 np->rxopt.bits.rxinfo || np->rxopt.bits.rxoinfo || in dccp_v6_conn_request()
363 np->rxopt.bits.rxhlim || np->rxopt.bits.rxohlim) { in dccp_v6_conn_request()
660 if (np->rxopt.bits.rxinfo || np->rxopt.bits.rxoinfo) in dccp_v6_do_rcv()
662 if (np->rxopt.bits.rxhlim || np->rxopt.bits.rxohlim) in dccp_v6_do_rcv()
664 if (np->rxopt.bits.rxflow || np->rxopt.bits.rxtclass) in dccp_v6_do_rcv()
/net/netfilter/ipset/
Dip_set_bitmap_ip.c241 range_to_mask(u32 from, u32 to, u8 *bits) in range_to_mask() argument
245 *bits = 32; in range_to_mask()
246 while (--(*bits) > 0 && mask && (to & mask) != from) in range_to_mask()
/net/ethtool/
Dbitset.c270 struct nlattr *bits; in ethnl_put_bitset32() local
273 bits = nla_nest_start(skb, ETHTOOL_A_BITSET_BITS); in ethnl_put_bitset32()
274 if (!bits) in ethnl_put_bitset32()
294 nla_nest_end(skb, bits); in ethnl_put_bitset32()
/net/ceph/crush/
Dmapper.c265 int bits = __builtin_clz(x & 0x1FFFF) - 16; in crush_ln() local
266 x <<= bits; in crush_ln()
267 iexpon = 15 - bits; in crush_ln()
/net/openvswitch/
Dconntrack.c170 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
392 u32 *dst = (u32 *)cl->bits; in ovs_ct_init_labels()
406 memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_init_labels()
428 memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_set_labels()
/net/mac80211/
Dmesh.c980 unsigned long bits = changed; in ieee80211_mbss_info_change_notify() local
983 if (!bits) in ieee80211_mbss_info_change_notify()
987 for_each_set_bit(bit, &bits, sizeof(changed) * BITS_PER_BYTE) in ieee80211_mbss_info_change_notify()
/net/ipv6/netfilter/
DKconfig103 Compares the last 64 bits with the EUI64 (delivered
/net/ipv4/netfilter/
DKconfig286 You can use this target to remove the ECN bits from the IPv4 header of
/net/sched/
Dact_ct.c190 memcpy(act_ct_labels, ct_labels->bits, NF_CT_LABELS_MAX_SIZE); in tcf_ct_flow_table_add_action_meta()
/net/core/
Dflow_dissector.c271 memcpy(key->ct_labels, cl->bits, sizeof(key->ct_labels)); in skb_flow_dissect_ct()

12