Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 15 of 15) sorted by relevance

/net/ipv4/
Dfib_trie.c124 unsigned char slen; member
369 l->slen = fa->fa_slen; in leaf_new()
403 tn->slen = pos; in tnode_new()
442 if (n && (tn->slen < n->slen)) in put_child()
443 tn->slen = n->slen; in put_child()
712 unsigned char slen = tn->pos; in update_suffix() local
720 slen_max = min_t(unsigned char, tn->pos + tn->bits - 1, tn->slen); in update_suffix()
730 if (!n || (n->slen <= slen)) in update_suffix()
734 stride <<= (n->slen - slen); in update_suffix()
735 slen = n->slen; in update_suffix()
[all …]
Dfib_semantics.c2050 u8 slen = 32 - res->prefixlen; in fib_select_default() local
2060 if (fa->fa_slen != slen) in fib_select_default()
/net/ipv6/
Dseg6.c92 u8 slen; in seg6_genl_sethmac() local
102 slen = nla_get_u8(info->attrs[SEG6_ATTR_SECRETLEN]); in seg6_genl_sethmac()
108 if (slen > SEG6_HMAC_SECRET_LEN) in seg6_genl_sethmac()
114 if (!slen) { in seg6_genl_sethmac()
128 if (slen > nla_len(info->attrs[SEG6_ATTR_SECRET])) { in seg6_genl_sethmac()
147 memcpy(hinfo->secret, secret, slen); in seg6_genl_sethmac()
148 hinfo->slen = slen; in seg6_genl_sethmac()
239 nla_put_u8(msg, SEG6_ATTR_SECRETLEN, hinfo->slen) || in __seg6_hmac_fill_info()
240 nla_put(msg, SEG6_ATTR_SECRET, hinfo->slen, hinfo->secret) || in __seg6_hmac_fill_info()
Dseg6_hmac.c141 ret = crypto_shash_setkey(tfm, hinfo->secret, hinfo->slen); in __do_hmac()
/net/dns_resolver/
Ddns_key.c245 int slen, dlen, ret = 0; in dns_resolver_cmp() local
256 slen = strlen(src); in dns_resolver_cmp()
258 if (slen <= 0 || dlen <= 0) in dns_resolver_cmp()
260 if (src[slen - 1] == '.') in dns_resolver_cmp()
261 slen--; in dns_resolver_cmp()
264 if (slen != dlen || strncasecmp(src, dsp, slen) != 0) in dns_resolver_cmp()
/net/sunrpc/
Dsvcauth_unix.c810 u32 slen, i; in svcauth_unix_accept() local
818 slen = XDR_QUADLEN(svc_getnl(argv)); /* machname length */ in svcauth_unix_accept()
819 if (slen > 64 || (len -= (slen + 3)*4) < 0) in svcauth_unix_accept()
821 argv->iov_base = (void*)((__be32*)argv->iov_base + slen); /* skip machname */ in svcauth_unix_accept()
822 argv->iov_len -= slen*4; in svcauth_unix_accept()
834 slen = svc_getnl(argv); /* gids length */ in svcauth_unix_accept()
835 if (slen > UNX_NGROUPS || (len -= (slen + 2)*4) < 0) in svcauth_unix_accept()
837 cred->cr_group_info = groups_alloc(slen); in svcauth_unix_accept()
840 for (i = 0; i < slen; i++) { in svcauth_unix_accept()
Dsvcsock.c190 int slen; in svc_send_common() local
193 slen = xdr->len; in svc_send_common()
196 if (slen == xdr->head[0].iov_len) in svc_send_common()
202 slen -= xdr->head[0].iov_len; in svc_send_common()
203 if (slen == 0) in svc_send_common()
209 if (slen == size) in svc_send_common()
216 slen -= size; in svc_send_common()
790 int err, slen; in svc_tcp_accept() local
816 slen = err; in svc_tcp_accept()
844 svc_xprt_set_remote(&newsvsk->sk_xprt, sin, slen); in svc_tcp_accept()
[all …]
Dsvc_xprt.c128 int slen; in svc_print_xprts() local
130 slen = snprintf(tmpstr, sizeof(tmpstr), "%s %d\n", in svc_print_xprts()
132 if (slen >= sizeof(tmpstr) || len + slen >= maxlen) in svc_print_xprts()
134 len += slen; in svc_print_xprts()
/net/ieee802154/
Dheader_ops.c205 int dlen, slen; in ieee802154_hdr_minlen() local
208 slen = ieee802154_hdr_addr_len(hdr->fc.source_addr_mode, in ieee802154_hdr_minlen()
211 if (slen < 0 || dlen < 0) in ieee802154_hdr_minlen()
214 return 3 + dlen + slen + hdr->fc.security_enabled; in ieee802154_hdr_minlen()
/net/dccp/
Dproto.c607 int err = -ENOENT, slen = 0, total_len = sizeof(u32); in dccp_getsockopt_service() local
611 slen = sl->dccpsl_nr * sizeof(u32); in dccp_getsockopt_service()
612 total_len += slen; in dccp_getsockopt_service()
622 (sl != NULL && copy_to_user(optval + 1, sl->dccpsl_list, slen))) in dccp_getsockopt_service()
Dfeat.c1019 static int dccp_feat_preflist_match(u8 *servlist, u8 slen, u8 *clilist, u8 clen) in dccp_feat_preflist_match() argument
1023 for (s = 0; s < slen; s++) in dccp_feat_preflist_match()
/net/netfilter/
Dnf_conntrack_sip.c418 hdr->slen); in ct_sip_get_header()
421 dptr += hdr->slen; in ct_sip_get_header()
450 dptr = ct_sip_header_search(dptr, limit, hdr->search, hdr->slen); in ct_sip_next_header()
453 dptr += hdr->slen; in ct_sip_next_header()
765 hdr->slen); in ct_sip_get_sdp_header()
768 dptr += hdr->slen; in ct_sip_get_sdp_header()
/net/sched/
Dsch_cake.c1708 unsigned int slen = 0, numsegs = 0; in cake_enqueue() local
1725 slen += segs->len; in cake_enqueue()
1732 b->bytes += slen; in cake_enqueue()
1733 b->backlogs[idx] += slen; in cake_enqueue()
1734 b->tin_backlog += slen; in cake_enqueue()
1735 sch->qstats.backlog += slen; in cake_enqueue()
1736 q->avg_window_bytes += slen; in cake_enqueue()
1738 qdisc_tree_reduce_backlog(sch, 1-numsegs, len-slen); in cake_enqueue()
/net/sunrpc/auth_gss/
Dgss_krb5_mech.c384 int slen = strlen(sigkeyconstant) + 1; /* include null terminator */ in context_derive_keys_rc4() local
415 err = crypto_shash_digest(desc, sigkeyconstant, slen, ctx->cksum); in context_derive_keys_rc4()
/net/core/
Dskbuff.c2484 int slen, ret; in skb_send_sock_locked() local
2493 slen = min_t(int, len, skb_headlen(skb) - offset); in skb_send_sock_locked()
2495 kv.iov_len = slen; in skb_send_sock_locked()
2499 ret = kernel_sendmsg_locked(sk, &msg, &kv, 1, slen); in skb_send_sock_locked()
2527 slen = min_t(size_t, len, skb_frag_size(frag) - offset); in skb_send_sock_locked()
2529 while (slen) { in skb_send_sock_locked()
2532 slen, MSG_DONTWAIT); in skb_send_sock_locked()
2538 slen -= ret; in skb_send_sock_locked()