Home
last modified time | relevance | path

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

/net/ipv6/
A Dipv6_sockglue.c1132 if (np->rxopt.bits.rxinfo) { in do_ipv6_getsockopt()
1141 if (np->rxopt.bits.rxhlim) { in do_ipv6_getsockopt()
1166 if (np->rxopt.bits.rxflow) { in do_ipv6_getsockopt()
1195 val = np->rxopt.bits.rxinfo; in do_ipv6_getsockopt()
1199 val = np->rxopt.bits.rxoinfo; in do_ipv6_getsockopt()
1203 val = np->rxopt.bits.rxhlim; in do_ipv6_getsockopt()
1207 val = np->rxopt.bits.rxohlim; in do_ipv6_getsockopt()
1211 val = np->rxopt.bits.srcrt; in do_ipv6_getsockopt()
1215 val = np->rxopt.bits.osrcrt; in do_ipv6_getsockopt()
1261 val = np->rxopt.bits.rxflow; in do_ipv6_getsockopt()
[all …]
A Ddatagram.c391 if (!np->rxopt.bits.rxpmtu) in ipv6_local_rxpmtu()
601 if (np->rxopt.bits.rxinfo) { in ip6_datagram_recv_common_ctl()
627 if (np->rxopt.bits.rxhlim) { in ip6_datagram_recv_specific_ctl()
632 if (np->rxopt.bits.rxtclass) { in ip6_datagram_recv_specific_ctl()
637 if (np->rxopt.bits.rxflow) { in ip6_datagram_recv_specific_ctl()
650 (np->rxopt.bits.dstopts || np->rxopt.bits.srcrt)) { in ip6_datagram_recv_specific_ctl()
671 if (np->rxopt.bits.dstopts) in ip6_datagram_recv_specific_ctl()
677 if (np->rxopt.bits.srcrt) in ip6_datagram_recv_specific_ctl()
695 if (np->rxopt.bits.rxoinfo) { in ip6_datagram_recv_specific_ctl()
702 if (np->rxopt.bits.rxohlim) { in ip6_datagram_recv_specific_ctl()
[all …]
A Dsyncookies.c209 np->rxopt.bits.rxinfo || np->rxopt.bits.rxoinfo || in cookie_v6_check()
210 np->rxopt.bits.rxhlim || np->rxopt.bits.rxohlim) { in cookie_v6_check()
A Daf_inet6.c874 (np->rxopt.bits.hopopts || np->rxopt.bits.ohopopts)) || in ipv6_opt_accepted()
876 np->rxopt.bits.rxflow) || in ipv6_opt_accepted()
877 (opt->srcrt && (np->rxopt.bits.srcrt || in ipv6_opt_accepted()
878 np->rxopt.bits.osrcrt)) || in ipv6_opt_accepted()
880 (np->rxopt.bits.dstopts || np->rxopt.bits.odstopts))) in ipv6_opt_accepted()
A Dtcp_ipv6.c814 np->rxopt.bits.rxinfo || in tcp_v6_init_req()
815 np->rxopt.bits.rxoinfo || np->rxopt.bits.rxhlim || in tcp_v6_init_req()
816 np->rxopt.bits.rxohlim || inet6_test_bit(REPFLOW, sk_listener))) { in tcp_v6_init_req()
1705 if (np->rxopt.bits.rxinfo || np->rxopt.bits.rxoinfo)
1707 if (np->rxopt.bits.rxhlim || np->rxopt.bits.rxohlim)
1710 if (np->rxopt.bits.rxflow || np->rxopt.bits.rxtclass)
A Draw.c448 if (np->rxpmtu && np->rxopt.bits.rxpmtu) in rawv6_recvmsg()
A Dudp.c482 if (np->rxpmtu && np->rxopt.bits.rxpmtu) in udpv6_recvmsg()
/net/ipv4/
A Dfib_trie.c118 #define IS_TNODE(n) ((n)->bits)
119 #define IS_LEAF(n) (!(n)->bits)
140 #define tn_bits kv[0].bits
361 l->bits = 0; in leaf_new()
380 tnode = tnode_alloc(bits); in tnode_new()
387 if (bits == KEYLENGTH) in tnode_new()
395 tn->bits = bits; in tnode_new()
571 if (inode->bits == 1) { in inflate()
1768 if (cindex >> pn->bits) in leaf_walk_rcu()
1852 cindex = 1ul << n->bits; in fib_trie_free()
[all …]
A Dinet_diag.c639 static int bitstring_match(const __be32 *a1, const __be32 *a2, int bits) in bitstring_match() argument
641 int words = bits >> 5; in bitstring_match()
643 bits &= 0x1f; in bitstring_match()
649 if (bits) { in bitstring_match()
656 mask = htonl((0xffffffff) << (32 - bits)); in bitstring_match()
/net/netfilter/
A Dnf_conntrack_labels.c41 size = sizeof(labels->bits); in nf_connlabels_replace()
45 dst = (u32 *) labels->bits; in nf_connlabels_replace()
59 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()
A 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()
A 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()
A Dnf_conntrack_netlink.c409 return nla_total_size(sizeof(labels->bits)); in ctnetlink_label_size()
424 if (labels->bits[i] != 0) in ctnetlink_dump_labels()
425 return nla_put(skb, CTA_LABELS, sizeof(labels->bits), in ctnetlink_dump_labels()
426 labels->bits); in ctnetlink_dump_labels()
428 } while (i < ARRAY_SIZE(labels->bits)); in ctnetlink_dump_labels()
A DKconfig191 This option enables support for assigning user-defined flag bits
1240 names to bits is done by userspace.
1242 Unlike connmark, more than 32 flag bits may be assigned to a
1318 the same bits as DSCP).
1377 This match extension allows you to match a range of CPIs(16 bits)
A Dnft_ct.c118 memcpy(dest, labels->bits, NF_CT_LABELS_MAX_SIZE); in nft_ct_get_eval()
/net/xfrm/
A 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/netfilter/ipset/
A Dip_set_bitmap_ip.c238 range_to_mask(u32 from, u32 to, u8 *bits) in range_to_mask() argument
242 *bits = 32; in range_to_mask()
243 while (--(*bits) > 0 && mask && (to & mask) != from) in range_to_mask()
/net/ethtool/
A 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/
A 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/
A Dconntrack.c179 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
403 u32 *dst = (u32 *)cl->bits; in ovs_ct_init_labels()
417 memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_init_labels()
439 memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_set_labels()
/net/ipv6/netfilter/
A DKconfig109 Compares the last 64 bits with the EUI64 (delivered
/net/ipv4/netfilter/
A DKconfig284 You can use this target to remove the ECN bits from the IPv4 header of
/net/mac80211/
A Dmesh.c1158 unsigned long bits[] = { BITMAP_FROM_U64(changed) }; in ieee80211_mbss_info_change_notify() local
1165 for_each_set_bit(bit, bits, sizeof(changed) * BITS_PER_BYTE) in ieee80211_mbss_info_change_notify()
/net/sched/
A Dact_ct.c197 memcpy(act_ct_labels, ct_labels->bits, NF_CT_LABELS_MAX_SIZE); in tcf_ct_flow_table_add_action_meta()
/net/core/
A Dflow_dissector.c360 memcpy(key->ct_labels, cl->bits, sizeof(key->ct_labels)); in skb_flow_dissect_ct()

Completed in 91 milliseconds