Home
last modified time | relevance | path

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

1234

/net/netfilter/
Dnf_conntrack_h323_asn1.c110 static int decode_nul(struct bitstr *bs, const struct field_t *f, char *base, int level);
111 static int decode_bool(struct bitstr *bs, const struct field_t *f, char *base, int level);
112 static int decode_oid(struct bitstr *bs, const struct field_t *f, char *base, int level);
113 static int decode_int(struct bitstr *bs, const struct field_t *f, char *base, int level);
114 static int decode_enum(struct bitstr *bs, const struct field_t *f, char *base, int level);
115 static int decode_bitstr(struct bitstr *bs, const struct field_t *f, char *base, int level);
116 static int decode_numstr(struct bitstr *bs, const struct field_t *f, char *base, int level);
117 static int decode_octstr(struct bitstr *bs, const struct field_t *f, char *base, int level);
118 static int decode_bmpstr(struct bitstr *bs, const struct field_t *f, char *base, int level);
119 static int decode_seq(struct bitstr *bs, const struct field_t *f, char *base, int level);
[all …]
Dxt_LOG.c36 li.u.log.level = loginfo->level; in log_tg()
51 if (loginfo->level >= 8) { in log_tg_check()
52 pr_debug("level %u >= 8\n", loginfo->level); in log_tg_check()
Dnft_log.c111 priv->loginfo.u.log.level == NFT_LOGLEVEL_AUDIT) { in nft_log_eval()
163 li->u.log.level = in nft_log_init()
166 li->u.log.level = NFT_LOGLEVEL_WARNING; in nft_log_init()
168 if (li->u.log.level > NFT_LOGLEVEL_AUDIT) { in nft_log_init()
196 if (li->u.log.level == NFT_LOGLEVEL_AUDIT) in nft_log_init()
220 if (li->u.log.level == NFT_LOGLEVEL_AUDIT) in nft_log_destroy()
236 if (nla_put_be32(skb, NFTA_LOG_LEVEL, htonl(li->u.log.level))) in nft_log_dump()
/net/sched/
Dsch_htb.c107 int level; /* our level (see above) */ member
226 if (cl->level == 0) in htb_classify()
255 if (!cl->level) in htb_classify()
263 if (!cl || cl->level) in htb_classify()
303 struct rb_node **p = &q->hlevel[cl->level].wait_pq.rb_node, *parent = NULL; in htb_add_to_wait_tree()
310 if (q->near_ev_cache[cl->level] > cl->pq_key) in htb_add_to_wait_tree()
311 q->near_ev_cache[cl->level] = cl->pq_key; in htb_add_to_wait_tree()
323 rb_insert_color(&cl->pq_node, &q->hlevel[cl->level].wait_pq); in htb_add_to_wait_tree()
346 q->row_mask[cl->level] |= mask; in htb_add_class_to_row()
350 htb_add_to_id_tree(&q->hlevel[cl->level].hprio[prio].row, cl, prio); in htb_add_class_to_row()
[all …]
Dsch_cbq.c109 unsigned char level; /* level of the class in hierarchy: member
245 if (cl->level >= head->level) in cbq_classify()
260 if (cl->level == 0) in cbq_classify()
346 if (toplevel > cl->level) { in cbq_mark_toplevel()
351 q->toplevel = cl->level; in cbq_mark_toplevel()
354 } while ((cl = cl->borrow) != NULL && toplevel > cl->level); in cbq_mark_toplevel()
532 if (cl && q->toplevel >= borrowed->level) { in cbq_update_toplevel()
536 q->toplevel = borrowed->level; in cbq_update_toplevel()
670 if (cl->level > q->toplevel) in cbq_under_limit()
870 int level = 0; in cbq_adjust_levels() local
[all …]
Dsch_hfsc.c120 unsigned int level; /* class level in hierarchy */ member
306 while (cl->level > 0) { in vttree_get_minvt()
851 unsigned int level; in hfsc_adjust_levels() local
854 level = 0; in hfsc_adjust_levels()
856 if (p->level >= level) in hfsc_adjust_levels()
857 level = p->level + 1; in hfsc_adjust_levels()
859 cl->level = level; in hfsc_adjust_levels()
1069 if (parent->level == 0) in hfsc_change_class()
1098 if (cl->level > 0 || cl->filter_cnt > 0 || cl == &q->root) in hfsc_delete_class()
1126 if (cl->level == 0) in hfsc_classify()
[all …]
/net/
Dcompat.c210 int put_cmsg_compat(struct msghdr *kmsg, int level, int type, int len, void *data) in put_cmsg_compat() argument
224 if (level == SOL_SOCKET && type == SO_TIMESTAMP_OLD) { in put_cmsg_compat()
231 if (level == SOL_SOCKET && in put_cmsg_compat()
250 cmhdr.cmsg_level = level; in put_cmsg_compat()
340 static int do_set_attach_filter(struct socket *sock, int level, int optname, in do_set_attach_filter() argument
349 return sock_setsockopt(sock, level, optname, (char __user *)kfprog, in do_set_attach_filter()
353 static int compat_sock_setsockopt(struct socket *sock, int level, int optname, in compat_sock_setsockopt() argument
358 return do_set_attach_filter(sock, level, optname, in compat_sock_setsockopt()
360 return sock_setsockopt(sock, level, optname, optval, optlen); in compat_sock_setsockopt()
363 static int __compat_sys_setsockopt(int fd, int level, int optname, in __compat_sys_setsockopt() argument
[all …]
/net/ipv6/
Dipv6_sockglue.c139 static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, in do_ipv6_setsockopt() argument
933 int ipv6_setsockopt(struct sock *sk, int level, int optname, in ipv6_setsockopt() argument
938 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt()
939 return udp_prot.setsockopt(sk, level, optname, optval, optlen); in ipv6_setsockopt()
941 if (level != SOL_IPV6) in ipv6_setsockopt()
944 err = do_ipv6_setsockopt(sk, level, optname, optval, optlen); in ipv6_setsockopt()
956 int compat_ipv6_setsockopt(struct sock *sk, int level, int optname, in compat_ipv6_setsockopt() argument
961 if (level == SOL_IP && sk->sk_type != SOCK_RAW) { in compat_ipv6_setsockopt()
963 return udp_prot.compat_setsockopt(sk, level, optname, in compat_ipv6_setsockopt()
965 return udp_prot.setsockopt(sk, level, optname, optval, optlen); in compat_ipv6_setsockopt()
[all …]
Draw.c974 static int rawv6_seticmpfilter(struct sock *sk, int level, int optname, in rawv6_seticmpfilter() argument
991 static int rawv6_geticmpfilter(struct sock *sk, int level, int optname, in rawv6_geticmpfilter() argument
1017 static int do_rawv6_setsockopt(struct sock *sk, int level, int optname, in do_rawv6_setsockopt() argument
1034 level == IPPROTO_IPV6) { in do_rawv6_setsockopt()
1064 static int rawv6_setsockopt(struct sock *sk, int level, int optname, in rawv6_setsockopt() argument
1067 switch (level) { in rawv6_setsockopt()
1074 return rawv6_seticmpfilter(sk, level, optname, optval, optlen); in rawv6_setsockopt()
1081 return ipv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt()
1084 return do_rawv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt()
1088 static int compat_rawv6_setsockopt(struct sock *sk, int level, int optname, in compat_rawv6_setsockopt() argument
[all …]
Dudp_impl.h18 int udpv6_getsockopt(struct sock *sk, int level, int optname,
20 int udpv6_setsockopt(struct sock *sk, int level, int optname,
23 int compat_udpv6_setsockopt(struct sock *sk, int level, int optname,
25 int compat_udpv6_getsockopt(struct sock *sk, int level, int optname,
Dudp.c1559 int udpv6_setsockopt(struct sock *sk, int level, int optname, in udpv6_setsockopt() argument
1562 if (level == SOL_UDP || level == SOL_UDPLITE) in udpv6_setsockopt()
1563 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in udpv6_setsockopt()
1565 return ipv6_setsockopt(sk, level, optname, optval, optlen); in udpv6_setsockopt()
1569 int compat_udpv6_setsockopt(struct sock *sk, int level, int optname, in compat_udpv6_setsockopt() argument
1572 if (level == SOL_UDP || level == SOL_UDPLITE) in compat_udpv6_setsockopt()
1573 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in compat_udpv6_setsockopt()
1575 return compat_ipv6_setsockopt(sk, level, optname, optval, optlen); in compat_udpv6_setsockopt()
1579 int udpv6_getsockopt(struct sock *sk, int level, int optname, in udpv6_getsockopt() argument
1582 if (level == SOL_UDP || level == SOL_UDPLITE) in udpv6_getsockopt()
[all …]
/net/ipv4/
Dudp_impl.h15 int udp_setsockopt(struct sock *sk, int level, int optname,
17 int udp_getsockopt(struct sock *sk, int level, int optname,
21 int compat_udp_setsockopt(struct sock *sk, int level, int optname,
23 int compat_udp_getsockopt(struct sock *sk, int level, int optname,
Draw.c840 static int do_raw_setsockopt(struct sock *sk, int level, int optname, in do_raw_setsockopt() argument
852 static int raw_setsockopt(struct sock *sk, int level, int optname, in raw_setsockopt() argument
855 if (level != SOL_RAW) in raw_setsockopt()
856 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt()
857 return do_raw_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt()
861 static int compat_raw_setsockopt(struct sock *sk, int level, int optname, in compat_raw_setsockopt() argument
864 if (level != SOL_RAW) in compat_raw_setsockopt()
865 return compat_ip_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt()
866 return do_raw_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt()
870 static int do_raw_getsockopt(struct sock *sk, int level, int optname, in do_raw_getsockopt() argument
[all …]
Dcipso_ipv4.c650 static int cipso_v4_map_lvl_valid(const struct cipso_v4_doi *doi_def, u8 level) in cipso_v4_map_lvl_valid() argument
656 if ((level < doi_def->map.std->lvl.cipso_size) && in cipso_v4_map_lvl_valid()
657 (doi_def->map.std->lvl.cipso[level] < CIPSO_V4_INV_LVL)) in cipso_v4_map_lvl_valid()
1189 u32 level; in cipso_v4_gentag_rbm() local
1196 &level); in cipso_v4_gentag_rbm()
1220 buffer[3] = level; in cipso_v4_gentag_rbm()
1243 u32 level; in cipso_v4_parsetag_rbm() local
1245 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level); in cipso_v4_parsetag_rbm()
1248 secattr->attr.mls.lvl = level; in cipso_v4_parsetag_rbm()
1286 u32 level; in cipso_v4_gentag_enum() local
[all …]
Dip_sockglue.c590 static int do_ip_setsockopt(struct sock *sk, int level, in do_ip_setsockopt() argument
1240 int ip_setsockopt(struct sock *sk, int level, in ip_setsockopt() argument
1245 if (level != SOL_IP) in ip_setsockopt()
1248 err = do_ip_setsockopt(sk, level, optname, optval, optlen); in ip_setsockopt()
1267 int compat_ip_setsockopt(struct sock *sk, int level, int optname, in compat_ip_setsockopt() argument
1272 if (level != SOL_IP) in compat_ip_setsockopt()
1276 return compat_mc_setsockopt(sk, level, optname, optval, optlen, in compat_ip_setsockopt()
1279 err = do_ip_setsockopt(sk, level, optname, optval, optlen); in compat_ip_setsockopt()
1309 static int do_ip_getsockopt(struct sock *sk, int level, int optname, in do_ip_getsockopt() argument
1317 if (level != SOL_IP) in do_ip_getsockopt()
[all …]
Dudp.c2523 int udp_lib_setsockopt(struct sock *sk, int level, int optname, in udp_lib_setsockopt() argument
2632 int udp_setsockopt(struct sock *sk, int level, int optname, in udp_setsockopt() argument
2635 if (level == SOL_UDP || level == SOL_UDPLITE) in udp_setsockopt()
2636 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in udp_setsockopt()
2638 return ip_setsockopt(sk, level, optname, optval, optlen); in udp_setsockopt()
2642 int compat_udp_setsockopt(struct sock *sk, int level, int optname, in compat_udp_setsockopt() argument
2645 if (level == SOL_UDP || level == SOL_UDPLITE) in compat_udp_setsockopt()
2646 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in compat_udp_setsockopt()
2648 return compat_ip_setsockopt(sk, level, optname, optval, optlen); in compat_udp_setsockopt()
2652 int udp_lib_getsockopt(struct sock *sk, int level, int optname, in udp_lib_getsockopt() argument
[all …]
/net/dccp/
Dproto.c500 static int do_dccp_setsockopt(struct sock *sk, int level, int optname, in do_dccp_setsockopt() argument
566 int dccp_setsockopt(struct sock *sk, int level, int optname, in dccp_setsockopt() argument
569 if (level != SOL_DCCP) in dccp_setsockopt()
570 return inet_csk(sk)->icsk_af_ops->setsockopt(sk, level, in dccp_setsockopt()
573 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in dccp_setsockopt()
579 int compat_dccp_setsockopt(struct sock *sk, int level, int optname, in compat_dccp_setsockopt() argument
582 if (level != SOL_DCCP) in compat_dccp_setsockopt()
583 return inet_csk_compat_setsockopt(sk, level, optname, in compat_dccp_setsockopt()
585 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in compat_dccp_setsockopt()
619 static int do_dccp_getsockopt(struct sock *sk, int level, int optname, in do_dccp_getsockopt() argument
[all …]
/net/mac802154/
Dllsec.c50 msl = container_of(sl, struct mac802154_llsec_seclevel, level); in mac802154_llsec_destroy()
481 level); in llsec_find_seclevel()
499 entry->level = *sl; in mac802154_llsec_seclevel_add()
501 list_add_tail_rcu(&entry->level.list, &sec->table.security_levels); in mac802154_llsec_seclevel_add()
515 list_del_rcu(&pos->level.list); in mac802154_llsec_seclevel_del()
605 iv[13] = sec->level; in llsec_geniv()
674 if (!(hdr->sec.level & IEEE802154_SCF_SECLEVEL_ENC)) { in llsec_do_encrypt_auth()
695 if (hdr->sec.level == IEEE802154_SCF_SECLEVEL_ENC) in llsec_do_encrypt()
714 (hdr.sec.level == IEEE802154_SCF_SECLEVEL_NONE)) { in mac802154_llsec_encrypt()
812 struct ieee802154_llsec_seclevel *level; in llsec_lookup_seclevel() local
[all …]
/net/9p/
Dmod.c32 void _p9_debug(enum p9_debug_flags level, const char *func, in _p9_debug() argument
38 if ((p9_debug_level & level) != level) in _p9_debug()
46 if (level == P9_DEBUG_9P) in _p9_debug()
/net/atm/
Dpvc.c65 static int pvc_setsockopt(struct socket *sock, int level, int optname, in pvc_setsockopt() argument
72 error = vcc_setsockopt(sock, level, optname, optval, optlen); in pvc_setsockopt()
77 static int pvc_getsockopt(struct socket *sock, int level, int optname, in pvc_getsockopt() argument
84 error = vcc_getsockopt(sock, level, optname, optval, optlen); in pvc_getsockopt()
Dcommon.h23 int vcc_setsockopt(struct socket *sock, int level, int optname,
25 int vcc_getsockopt(struct socket *sock, int level, int optname,
Dsvc.c453 static int svc_setsockopt(struct socket *sock, int level, int optname, in svc_setsockopt() argument
463 if (level != SOL_ATM || optlen != sizeof(struct atm_sap)) { in svc_setsockopt()
474 if (level != SOL_ATM || optlen != sizeof(int)) { in svc_setsockopt()
490 error = vcc_setsockopt(sock, level, optname, optval, optlen); in svc_setsockopt()
498 static int svc_getsockopt(struct socket *sock, int level, int optname, in svc_getsockopt() argument
505 if (!__SO_LEVEL_MATCH(optname, level) || optname != SO_ATMSAP) { in svc_getsockopt()
506 error = vcc_getsockopt(sock, level, optname, optval, optlen); in svc_getsockopt()
/net/wireless/
Dwext-spy.c218 if (wstats->level > spydata->spy_thr_high.level) { in wireless_spy_update()
224 if (wstats->level < spydata->spy_thr_low.level) { in wireless_spy_update()
/net/bluetooth/rfcomm/
Dsock.c691 static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_setsockopt() argument
701 if (level == SOL_RFCOMM) in rfcomm_sock_setsockopt()
704 if (level != SOL_BLUETOOTH) in rfcomm_sock_setsockopt()
716 sec.level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt()
724 if (sec.level > BT_SECURITY_HIGH) { in rfcomm_sock_setsockopt()
729 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt()
834 static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_getsockopt() argument
842 if (level == SOL_RFCOMM) in rfcomm_sock_getsockopt()
845 if (level != SOL_BLUETOOTH) in rfcomm_sock_getsockopt()
860 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt()
/net/bluetooth/
Dl2cap_sock.c495 static int l2cap_sock_getsockopt(struct socket *sock, int level, int optname, in l2cap_sock_getsockopt() argument
506 if (level == SOL_L2CAP) in l2cap_sock_getsockopt()
509 if (level != SOL_BLUETOOTH) in l2cap_sock_getsockopt()
528 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt()
533 sec.level = chan->sec_level; in l2cap_sock_getsockopt()
743 static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, in l2cap_sock_setsockopt() argument
756 if (level == SOL_L2CAP) in l2cap_sock_setsockopt()
759 if (level != SOL_BLUETOOTH) in l2cap_sock_setsockopt()
773 sec.level = BT_SECURITY_LOW; in l2cap_sock_setsockopt()
781 if (sec.level < BT_SECURITY_LOW || in l2cap_sock_setsockopt()
[all …]

1234