Home
last modified time | relevance | path

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

1234

/net/netfilter/
Dnf_conntrack_h323_asn1.c114 static int decode_nul(bitstr_t *bs, const struct field_t *f, char *base, int level);
115 static int decode_bool(bitstr_t *bs, const struct field_t *f, char *base, int level);
116 static int decode_oid(bitstr_t *bs, const struct field_t *f, char *base, int level);
117 static int decode_int(bitstr_t *bs, const struct field_t *f, char *base, int level);
118 static int decode_enum(bitstr_t *bs, const struct field_t *f, char *base, int level);
119 static int decode_bitstr(bitstr_t *bs, const struct field_t *f, char *base, int level);
120 static int decode_numstr(bitstr_t *bs, const struct field_t *f, char *base, int level);
121 static int decode_octstr(bitstr_t *bs, const struct field_t *f, char *base, int level);
122 static int decode_bmpstr(bitstr_t *bs, const struct field_t *f, char *base, int level);
123 static int decode_seq(bitstr_t *bs, const struct field_t *f, char *base, int level);
[all …]
Dxt_LOG.c39 li.u.log.level = loginfo->level; in log_tg()
54 if (loginfo->level >= 8) { in log_tg_check()
55 pr_debug("level %u >= 8\n", loginfo->level); in log_tg_check()
Dnft_log.c82 li->u.log.level = in nft_log_init()
85 li->u.log.level = LOGLEVEL_WARNING; in nft_log_init()
87 if (li->u.log.level > LOGLEVEL_DEBUG) { in nft_log_init()
149 if (nla_put_be32(skb, NFTA_LOG_LEVEL, htonl(li->u.log.level))) in nft_log_dump()
/net/sched/
Dsch_htb.c111 int level; /* our level (see above) */ member
230 if (cl->level == 0) in htb_classify()
258 if (!cl->level) in htb_classify()
266 if (!cl || cl->level) in htb_classify()
306 struct rb_node **p = &q->hlevel[cl->level].wait_pq.rb_node, *parent = NULL; in htb_add_to_wait_tree()
313 if (q->near_ev_cache[cl->level] > cl->pq_key) in htb_add_to_wait_tree()
314 q->near_ev_cache[cl->level] = cl->pq_key; in htb_add_to_wait_tree()
326 rb_insert_color(&cl->pq_node, &q->hlevel[cl->level].wait_pq); in htb_add_to_wait_tree()
349 q->row_mask[cl->level] |= mask; in htb_add_class_to_row()
353 htb_add_to_id_tree(&q->hlevel[cl->level].hprio[prio].row, cl, prio); in htb_add_class_to_row()
[all …]
Dsch_cbq.c114 unsigned char level; /* level of the class in hierarchy: member
250 if (cl->level >= head->level) in cbq_classify()
264 if (cl->level == 0) in cbq_classify()
350 if (toplevel > cl->level) { in cbq_mark_toplevel()
355 q->toplevel = cl->level; in cbq_mark_toplevel()
358 } while ((cl = cl->borrow) != NULL && toplevel > cl->level); in cbq_mark_toplevel()
536 if (cl && q->toplevel >= borrowed->level) { in cbq_update_toplevel()
540 q->toplevel = borrowed->level; in cbq_update_toplevel()
674 if (cl->level > q->toplevel) in cbq_under_limit()
874 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()
861 unsigned int level; in hfsc_adjust_levels() local
864 level = 0; in hfsc_adjust_levels()
866 if (p->level >= level) in hfsc_adjust_levels()
867 level = p->level + 1; in hfsc_adjust_levels()
869 cl->level = level; in hfsc_adjust_levels()
1077 if (parent->level == 0) in hfsc_change_class()
1106 if (cl->level > 0 || cl->filter_cnt > 0 || cl == &q->root) in hfsc_delete_class()
1134 if (cl->level == 0) in hfsc_classify()
[all …]
/net/
Dcompat.c208 int put_cmsg_compat(struct msghdr *kmsg, int level, int type, int len, void *data) in put_cmsg_compat() argument
222 if (level == SOL_SOCKET && type == SCM_TIMESTAMP) { in put_cmsg_compat()
229 if (level == SOL_SOCKET && in put_cmsg_compat()
248 cmhdr.cmsg_level = level; in put_cmsg_compat()
338 static int do_set_attach_filter(struct socket *sock, int level, int optname, in do_set_attach_filter() argument
347 return sock_setsockopt(sock, level, optname, (char __user *)kfprog, in do_set_attach_filter()
351 static int do_set_sock_timeout(struct socket *sock, int level, in do_set_sock_timeout() argument
367 err = sock_setsockopt(sock, level, optname, (char *)&ktime, sizeof(ktime)); in do_set_sock_timeout()
373 static int compat_sock_setsockopt(struct socket *sock, int level, int optname, in compat_sock_setsockopt() argument
378 return do_set_attach_filter(sock, level, optname, in compat_sock_setsockopt()
[all …]
/net/ipv6/
Dipv6_sockglue.c141 static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, in do_ipv6_setsockopt() argument
920 int ipv6_setsockopt(struct sock *sk, int level, int optname, in ipv6_setsockopt() argument
925 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt()
926 return udp_prot.setsockopt(sk, level, optname, optval, optlen); in ipv6_setsockopt()
928 if (level != SOL_IPV6) in ipv6_setsockopt()
931 err = do_ipv6_setsockopt(sk, level, optname, optval, optlen); in ipv6_setsockopt()
943 int compat_ipv6_setsockopt(struct sock *sk, int level, int optname, in compat_ipv6_setsockopt() argument
948 if (level == SOL_IP && sk->sk_type != SOCK_RAW) { in compat_ipv6_setsockopt()
950 return udp_prot.compat_setsockopt(sk, level, optname, in compat_ipv6_setsockopt()
952 return udp_prot.setsockopt(sk, level, optname, optval, optlen); in compat_ipv6_setsockopt()
[all …]
Dudp_impl.h17 int udpv6_getsockopt(struct sock *sk, int level, int optname,
19 int udpv6_setsockopt(struct sock *sk, int level, int optname,
22 int compat_udpv6_setsockopt(struct sock *sk, int level, int optname,
24 int compat_udpv6_getsockopt(struct sock *sk, int level, int optname,
Draw.c977 static int rawv6_seticmpfilter(struct sock *sk, int level, int optname, in rawv6_seticmpfilter() argument
994 static int rawv6_geticmpfilter(struct sock *sk, int level, int optname, in rawv6_geticmpfilter() argument
1020 static int do_rawv6_setsockopt(struct sock *sk, int level, int optname, in do_rawv6_setsockopt() argument
1037 level == IPPROTO_IPV6) { in do_rawv6_setsockopt()
1067 static int rawv6_setsockopt(struct sock *sk, int level, int optname, in rawv6_setsockopt() argument
1070 switch (level) { in rawv6_setsockopt()
1077 return rawv6_seticmpfilter(sk, level, optname, optval, optlen); in rawv6_setsockopt()
1083 return ipv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt()
1086 return do_rawv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt()
1090 static int compat_rawv6_setsockopt(struct sock *sk, int level, int optname, in compat_rawv6_setsockopt() argument
[all …]
Dudp.c1453 int udpv6_setsockopt(struct sock *sk, int level, int optname, in udpv6_setsockopt() argument
1456 if (level == SOL_UDP || level == SOL_UDPLITE) in udpv6_setsockopt()
1457 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in udpv6_setsockopt()
1459 return ipv6_setsockopt(sk, level, optname, optval, optlen); in udpv6_setsockopt()
1463 int compat_udpv6_setsockopt(struct sock *sk, int level, int optname, in compat_udpv6_setsockopt() argument
1466 if (level == SOL_UDP || level == SOL_UDPLITE) in compat_udpv6_setsockopt()
1467 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in compat_udpv6_setsockopt()
1469 return compat_ipv6_setsockopt(sk, level, optname, optval, optlen); in compat_udpv6_setsockopt()
1473 int udpv6_getsockopt(struct sock *sk, int level, int optname, in udpv6_getsockopt() argument
1476 if (level == SOL_UDP || level == SOL_UDPLITE) in udpv6_getsockopt()
[all …]
/net/ipv4/
Dudp_impl.h14 int udp_setsockopt(struct sock *sk, int level, int optname,
16 int udp_getsockopt(struct sock *sk, int level, int optname,
20 int compat_udp_setsockopt(struct sock *sk, int level, int optname,
22 int compat_udp_getsockopt(struct sock *sk, int level, int optname,
Draw.c839 static int do_raw_setsockopt(struct sock *sk, int level, int optname, in do_raw_setsockopt() argument
851 static int raw_setsockopt(struct sock *sk, int level, int optname, in raw_setsockopt() argument
854 if (level != SOL_RAW) in raw_setsockopt()
855 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt()
856 return do_raw_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt()
860 static int compat_raw_setsockopt(struct sock *sk, int level, int optname, in compat_raw_setsockopt() argument
863 if (level != SOL_RAW) in compat_raw_setsockopt()
864 return compat_ip_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt()
865 return do_raw_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt()
869 static int do_raw_getsockopt(struct sock *sk, int level, int optname, in do_raw_getsockopt() argument
[all …]
Dcipso_ipv4.c664 static int cipso_v4_map_lvl_valid(const struct cipso_v4_doi *doi_def, u8 level) in cipso_v4_map_lvl_valid() argument
670 if ((level < doi_def->map.std->lvl.cipso_size) && in cipso_v4_map_lvl_valid()
671 (doi_def->map.std->lvl.cipso[level] < CIPSO_V4_INV_LVL)) in cipso_v4_map_lvl_valid()
1203 u32 level; in cipso_v4_gentag_rbm() local
1210 &level); in cipso_v4_gentag_rbm()
1234 buffer[3] = level; in cipso_v4_gentag_rbm()
1257 u32 level; in cipso_v4_parsetag_rbm() local
1259 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level); in cipso_v4_parsetag_rbm()
1262 secattr->attr.mls.lvl = level; in cipso_v4_parsetag_rbm()
1300 u32 level; in cipso_v4_gentag_enum() local
[all …]
Dip_sockglue.c593 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()
1262 int compat_ip_setsockopt(struct sock *sk, int level, int optname, in compat_ip_setsockopt() argument
1267 if (level != SOL_IP) in compat_ip_setsockopt()
1271 return compat_mc_setsockopt(sk, level, optname, optval, optlen, in compat_ip_setsockopt()
1274 err = do_ip_setsockopt(sk, level, optname, optval, optlen); in compat_ip_setsockopt()
1304 static int do_ip_getsockopt(struct sock *sk, int level, int optname, in do_ip_getsockopt() argument
1312 if (level != SOL_IP) in do_ip_getsockopt()
[all …]
/net/dccp/
Dproto.c501 static int do_dccp_setsockopt(struct sock *sk, int level, int optname, in do_dccp_setsockopt() argument
567 int dccp_setsockopt(struct sock *sk, int level, int optname, in dccp_setsockopt() argument
570 if (level != SOL_DCCP) in dccp_setsockopt()
571 return inet_csk(sk)->icsk_af_ops->setsockopt(sk, level, in dccp_setsockopt()
574 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in dccp_setsockopt()
580 int compat_dccp_setsockopt(struct sock *sk, int level, int optname, in compat_dccp_setsockopt() argument
583 if (level != SOL_DCCP) in compat_dccp_setsockopt()
584 return inet_csk_compat_setsockopt(sk, level, optname, in compat_dccp_setsockopt()
586 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in compat_dccp_setsockopt()
620 static int do_dccp_getsockopt(struct sock *sk, int level, int optname, in do_dccp_getsockopt() argument
[all …]
/net/9p/
Dmod.c47 void _p9_debug(enum p9_debug_flags level, const char *func, in _p9_debug() argument
53 if ((p9_debug_level & level) != level) in _p9_debug()
61 if (level == P9_DEBUG_9P) in _p9_debug()
/net/mac802154/
Dllsec.c58 msl = container_of(sl, struct mac802154_llsec_seclevel, level); in mac802154_llsec_destroy()
489 level); in llsec_find_seclevel()
507 entry->level = *sl; in mac802154_llsec_seclevel_add()
509 list_add_tail_rcu(&entry->level.list, &sec->table.security_levels); in mac802154_llsec_seclevel_add()
523 list_del_rcu(&pos->level.list); in mac802154_llsec_seclevel_del()
613 iv[13] = sec->level; in llsec_geniv()
677 if (!(hdr->sec.level & IEEE802154_SCF_SECLEVEL_ENC)) { in llsec_do_encrypt_auth()
698 if (hdr->sec.level == IEEE802154_SCF_SECLEVEL_ENC) in llsec_do_encrypt()
716 if (!hdr.fc.security_enabled || hdr.sec.level == 0) { in mac802154_llsec_encrypt()
814 struct ieee802154_llsec_seclevel *level; in llsec_lookup_seclevel() local
[all …]
/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.c454 static int svc_setsockopt(struct socket *sock, int level, int optname, in svc_setsockopt() argument
464 if (level != SOL_ATM || optlen != sizeof(struct atm_sap)) { in svc_setsockopt()
475 if (level != SOL_ATM || optlen != sizeof(int)) { in svc_setsockopt()
491 error = vcc_setsockopt(sock, level, optname, optval, optlen); in svc_setsockopt()
499 static int svc_getsockopt(struct socket *sock, int level, int optname, in svc_getsockopt() argument
506 if (!__SO_LEVEL_MATCH(optname, level) || optname != SO_ATMSAP) { in svc_getsockopt()
507 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/tls/
Dtls_main.c380 static int tls_getsockopt(struct sock *sk, int level, int optname, in tls_getsockopt() argument
385 if (level != SOL_TLS) in tls_getsockopt()
386 return ctx->getsockopt(sk, level, optname, optval, optlen); in tls_getsockopt()
478 static int tls_setsockopt(struct sock *sk, int level, int optname, in tls_setsockopt() argument
483 if (level != SOL_TLS) in tls_setsockopt()
484 return ctx->setsockopt(sk, level, optname, optval, optlen); in tls_setsockopt()
/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.c496 static int l2cap_sock_getsockopt(struct socket *sock, int level, int optname, in l2cap_sock_getsockopt() argument
507 if (level == SOL_L2CAP) in l2cap_sock_getsockopt()
510 if (level != SOL_BLUETOOTH) in l2cap_sock_getsockopt()
529 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt()
534 sec.level = chan->sec_level; in l2cap_sock_getsockopt()
744 static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, in l2cap_sock_setsockopt() argument
757 if (level == SOL_L2CAP) in l2cap_sock_setsockopt()
760 if (level != SOL_BLUETOOTH) in l2cap_sock_setsockopt()
774 sec.level = BT_SECURITY_LOW; in l2cap_sock_setsockopt()
782 if (sec.level < BT_SECURITY_LOW || in l2cap_sock_setsockopt()
[all …]

1234