/net/ipv4/ |
D | fib_trie.c | 124 unsigned char slen; member 367 l->slen = fa->fa_slen; in leaf_new() 401 tn->slen = pos; in tnode_new() 440 if (n && (tn->slen < n->slen)) in put_child() 441 tn->slen = n->slen; in put_child() 710 unsigned char slen = tn->pos; in update_suffix() local 718 slen_max = min_t(unsigned char, tn->pos + tn->bits - 1, tn->slen); in update_suffix() 728 if (!n || (n->slen <= slen)) in update_suffix() 732 stride <<= (n->slen - slen); in update_suffix() 733 slen = n->slen; in update_suffix() [all …]
|
D | fib_semantics.c | 2057 u8 slen = 32 - res->prefixlen; in fib_select_default() local 2067 if (fa->fa_slen != slen) in fib_select_default()
|
D | route.c | 3415 u8 slen = 32 - fri.dst_len; in inet_rtm_getroute() local 3417 if (fa->fa_slen == slen && in inet_rtm_getroute()
|
/net/ipv6/ |
D | seg6.c | 161 u8 slen; in seg6_genl_sethmac() local 171 slen = nla_get_u8(info->attrs[SEG6_ATTR_SECRETLEN]); in seg6_genl_sethmac() 177 if (slen > SEG6_HMAC_SECRET_LEN) in seg6_genl_sethmac() 183 if (!slen) { in seg6_genl_sethmac() 194 if (slen > nla_len(info->attrs[SEG6_ATTR_SECRET])) { in seg6_genl_sethmac() 213 memcpy(hinfo->secret, secret, slen); in seg6_genl_sethmac() 214 hinfo->slen = slen; in seg6_genl_sethmac() 305 nla_put_u8(msg, SEG6_ATTR_SECRETLEN, hinfo->slen) || in __seg6_hmac_fill_info() 306 nla_put(msg, SEG6_ATTR_SECRET, hinfo->slen, hinfo->secret) || in __seg6_hmac_fill_info()
|
D | seg6_hmac.c | 139 ret = crypto_shash_setkey(tfm, hinfo->secret, hinfo->slen); in __do_hmac()
|
/net/dns_resolver/ |
D | dns_key.c | 252 int slen, dlen, ret = 0; in dns_resolver_cmp() local 263 slen = strlen(src); in dns_resolver_cmp() 265 if (slen <= 0 || dlen <= 0) in dns_resolver_cmp() 267 if (src[slen - 1] == '.') in dns_resolver_cmp() 268 slen--; in dns_resolver_cmp() 271 if (slen != dlen || strncasecmp(src, dsp, slen) != 0) in dns_resolver_cmp()
|
/net/sunrpc/ |
D | svcauth_unix.c | 867 u32 slen, i; in svcauth_unix_accept() local 875 slen = XDR_QUADLEN(svc_getnl(argv)); /* machname length */ in svcauth_unix_accept() 876 if (slen > 64 || (len -= (slen + 3)*4) < 0) in svcauth_unix_accept() 878 argv->iov_base = (void*)((__be32*)argv->iov_base + slen); /* skip machname */ in svcauth_unix_accept() 879 argv->iov_len -= slen*4; in svcauth_unix_accept() 891 slen = svc_getnl(argv); /* gids length */ in svcauth_unix_accept() 892 if (slen > UNX_NGROUPS || (len -= (slen + 2)*4) < 0) in svcauth_unix_accept() 894 cred->cr_group_info = groups_alloc(slen); in svcauth_unix_accept() 897 for (i = 0; i < slen; i++) { in svcauth_unix_accept()
|
D | svcsock.c | 743 int err, slen; in svc_tcp_accept() local 767 slen = err; in svc_tcp_accept() 783 svc_xprt_set_remote(&newsvsk->sk_xprt, sin, slen); in svc_tcp_accept() 785 slen = err; in svc_tcp_accept() 787 slen = offsetof(struct sockaddr, sa_data); in svc_tcp_accept() 788 svc_xprt_set_local(&newsvsk->sk_xprt, sin, slen); in svc_tcp_accept()
|
D | svc_xprt.c | 129 int slen; in svc_print_xprts() local 131 slen = snprintf(tmpstr, sizeof(tmpstr), "%s %d\n", in svc_print_xprts() 133 if (slen >= sizeof(tmpstr) || len + slen >= maxlen) in svc_print_xprts() 135 len += slen; in svc_print_xprts()
|
/net/ieee802154/ |
D | header_ops.c | 205 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/ |
D | proto.c | 590 int err = -ENOENT, slen = 0, total_len = sizeof(u32); in dccp_getsockopt_service() local 594 slen = sl->dccpsl_nr * sizeof(u32); in dccp_getsockopt_service() 595 total_len += slen; in dccp_getsockopt_service() 605 (sl != NULL && copy_to_user(optval + 1, sl->dccpsl_list, slen))) in dccp_getsockopt_service()
|
D | feat.c | 1025 static int dccp_feat_preflist_match(u8 *servlist, u8 slen, u8 *clilist, u8 clen) in dccp_feat_preflist_match() argument 1029 for (s = 0; s < slen; s++) in dccp_feat_preflist_match()
|
/net/netfilter/ |
D | nf_conntrack_sip.c | 418 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/ |
D | sch_cake.c | 1744 unsigned int slen = 0, numsegs = 0; in cake_enqueue() local 1760 slen += segs->len; in cake_enqueue() 1766 b->bytes += slen; in cake_enqueue() 1767 b->backlogs[idx] += slen; in cake_enqueue() 1768 b->tin_backlog += slen; in cake_enqueue() 1769 sch->qstats.backlog += slen; in cake_enqueue() 1770 q->avg_window_bytes += slen; in cake_enqueue() 1772 qdisc_tree_reduce_backlog(sch, 1-numsegs, len-slen); in cake_enqueue()
|
D | sch_taprio.c | 467 unsigned int slen = 0, numsegs = 0, len = qdisc_pkt_len(skb); in taprio_enqueue() local 479 slen += segs->len; in taprio_enqueue() 491 qdisc_tree_reduce_backlog(sch, 1 - numsegs, len - slen); in taprio_enqueue()
|
/net/bluetooth/ |
D | iso.c | 426 hdr->slen = cpu_to_le16(hci_iso_data_len_pack(len, in iso_send_frame() 1666 len = __le16_to_cpu(hdr->slen); in iso_recv() 1676 len = __le16_to_cpu(hdr->slen); in iso_recv()
|
/net/core/ |
D | skbuff.c | 2807 int slen, ret; in __skb_send_sock() local 2816 slen = min_t(int, len, skb_headlen(skb) - offset); in __skb_send_sock() 2818 kv.iov_len = slen; in __skb_send_sock() 2823 sendmsg_unlocked, sk, &msg, &kv, 1, slen); in __skb_send_sock() 2851 slen = min_t(size_t, len, skb_frag_size(frag) - offset); in __skb_send_sock() 2853 while (slen) { in __skb_send_sock() 2858 slen, MSG_DONTWAIT); in __skb_send_sock() 2864 slen -= ret; in __skb_send_sock()
|