/net/ipv6/ |
D | rpl.c | 67 unsigned char plen; in ipv6_rpl_srh_calc_cmpri() local 70 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpri() 72 if (daddr->s6_addr[plen] != in ipv6_rpl_srh_calc_cmpri() 73 inhdr->rpl_segaddr[i].s6_addr[plen]) in ipv6_rpl_srh_calc_cmpri() 74 return plen; in ipv6_rpl_srh_calc_cmpri() 84 unsigned int plen; in ipv6_rpl_srh_calc_cmpre() local 86 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpre() 87 if (daddr->s6_addr[plen] != last_segment->s6_addr[plen]) in ipv6_rpl_srh_calc_cmpre() 88 return plen; in ipv6_rpl_srh_calc_cmpre()
|
D | fib6_rules.c | 36 if (r->dst.plen || r->src.plen || r->dscp) in fib6_rule_matchall() 142 r->src.plen && !(flags & RT6_LOOKUP_F_HAS_SADDR)) { in fib6_rule_saddr() 149 if (!ipv6_prefix_equal(&saddr, &r->src.addr, r->src.plen)) in fib6_rule_saddr() 287 if (rt->rt6i_dst.plen <= rule->suppress_prefixlen) in fib6_rule_suppress() 309 if (r->dst.plen && in fib6_rule_match() 310 !ipv6_prefix_equal(&fl6->daddr, &r->dst.addr, r->dst.plen)) in fib6_rule_match() 318 if (r->src.plen) { in fib6_rule_match() 321 r->src.plen)) in fib6_rule_match() 378 rule6->src.plen = frh->src_len; in fib6_rule_configure() 379 rule6->dst.plen = frh->dst_len; in fib6_rule_configure() [all …]
|
D | seg6_hmac.c | 165 int plen, i, dgsize, wrsize; in seg6_hmac_compute() local 173 plen = 16 + 1 + 1 + 4 + (hdr->first_segment + 1) * 16; in seg6_hmac_compute() 176 if (plen >= SEG6_HMAC_RING_SIZE) in seg6_hmac_compute() 213 dgsize = __do_hmac(hinfo, ring, plen, tmp_out, in seg6_hmac_compute()
|
D | ip6_fib.c | 744 struct in6_addr *addr, int plen, in fib6_add_1() argument 769 if (plen < fn->fn_bit || in fib6_add_1() 787 if (plen == fn->fn_bit) { in fib6_add_1() 843 ln->fn_bit = plen; in fib6_add_1() 879 if (plen > bit) { in fib6_add_1() 912 ln->fn_bit = plen; in fib6_add_1() 937 ln->fn_bit = plen; in fib6_add_1() 941 if (addr_bit_set(&key->addr, plen)) in fib6_add_1() 1394 &rt->fib6_dst.addr, rt->fib6_dst.plen, in fib6_add() 1406 if (rt->fib6_src.plen) { in fib6_add() [all …]
|
D | route.c | 889 key_plen = rt0->fib6_dst.plen; in rt6_select() 891 if (rt0->fib6_src.plen) in rt6_select() 892 key_plen = rt0->fib6_src.plen; in rt6_select() 1343 rt->rt6i_dst.plen = 128; in ip6_rt_cache_alloc() 1346 if (f6i->fib6_dst.plen != 128 && in ip6_rt_cache_alloc() 1350 if (rt->rt6i_src.plen && saddr) { in ip6_rt_cache_alloc() 1352 rt->rt6i_src.plen = 128; in ip6_rt_cache_alloc() 1690 if (f6i->fib6_src.plen) in rt6_insert_exception() 1809 if (res->f6i->fib6_src.plen) in rt6_find_cached_rt() 1831 static int fib6_nh_remove_exception(const struct fib6_nh *nh, int plen, in fib6_nh_remove_exception() argument [all …]
|
/net/bluetooth/ |
D | hci_request.c | 212 struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, u32 plen, in hci_prepare_cmd() argument 215 int len = HCI_COMMAND_HDR_SIZE + plen; in hci_prepare_cmd() 225 hdr->plen = plen; in hci_prepare_cmd() 227 if (plen) in hci_prepare_cmd() 228 skb_put_data(skb, param, plen); in hci_prepare_cmd() 239 void hci_req_add_ev(struct hci_request *req, u16 opcode, u32 plen, in hci_req_add_ev() argument 245 bt_dev_dbg(hdev, "opcode 0x%4.4x plen %d", opcode, plen); in hci_req_add_ev() 253 skb = hci_prepare_cmd(hdev, opcode, plen, param); in hci_req_add_ev() 269 void hci_req_add(struct hci_request *req, u16 opcode, u32 plen, in hci_req_add() argument 273 hci_req_add_ev(req, opcode, plen, param, 0); in hci_req_add() [all …]
|
D | hci_request.h | 53 void hci_req_add(struct hci_request *req, u16 opcode, u32 plen, 55 void hci_req_add_ev(struct hci_request *req, u16 opcode, u32 plen, 68 struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, u32 plen,
|
D | hci_sync.c | 48 u32 plen, const void *param, in hci_cmd_sync_alloc() argument 51 int len = HCI_COMMAND_HDR_SIZE + plen; in hci_cmd_sync_alloc() 61 hdr->plen = plen; in hci_cmd_sync_alloc() 63 if (plen) in hci_cmd_sync_alloc() 64 skb_put_data(skb, param, plen); in hci_cmd_sync_alloc() 82 static void hci_cmd_sync_add(struct hci_request *req, u16 opcode, u32 plen, in hci_cmd_sync_add() argument 88 bt_dev_dbg(hdev, "opcode 0x%4.4x plen %d", opcode, plen); in hci_cmd_sync_add() 96 skb = hci_cmd_sync_alloc(hdev, opcode, plen, param, sk); in hci_cmd_sync_add() 146 struct sk_buff *__hci_cmd_sync_sk(struct hci_dev *hdev, u16 opcode, u32 plen, in __hci_cmd_sync_sk() argument 158 hci_cmd_sync_add(&req, opcode, plen, param, event, sk); in __hci_cmd_sync_sk() [all …]
|
/net/netfilter/ |
D | nf_conntrack_ftp.c | 66 size_t plen; member 75 .plen = sizeof("PORT") - 1, 83 .plen = sizeof("EPRT") - 1, 93 .plen = sizeof("227 ") - 1, 99 .plen = sizeof("229 ") - 1, 287 const char *pattern, size_t plen, in find_pattern() argument 296 size_t i = plen; in find_pattern() 300 if (dlen <= plen) { in find_pattern() 307 if (strncasecmp(data, pattern, plen) != 0) in find_pattern() 314 for (i = plen; data[i] != skip; i++) in find_pattern() [all …]
|
D | nft_redir.c | 48 unsigned int plen; in nft_redir_init() local 51 plen = sizeof_field(struct nf_nat_range, min_proto.all); in nft_redir_init() 54 &priv->sreg_proto_min, plen); in nft_redir_init() 61 plen); in nft_redir_init()
|
D | nft_nat.c | 174 unsigned int alen, plen; in nft_nat_init() local 234 plen = sizeof_field(struct nf_nat_range, min_proto.all); in nft_nat_init() 237 &priv->sreg_proto_min, plen); in nft_nat_init() 244 plen); in nft_nat_init()
|
D | nf_nat_sip.c | 182 unsigned int olen, matchend, poff, plen, buflen, n; in nf_nat_sip() local 211 "maddr=", &poff, &plen, in nf_nat_sip() 219 poff, plen, buffer, buflen)) { in nf_nat_sip() 228 "received=", &poff, &plen, in nf_nat_sip() 236 poff, plen, buffer, buflen)) { in nf_nat_sip() 245 "rport=", &poff, &plen, in nf_nat_sip() 252 poff, plen, buffer, buflen)) { in nf_nat_sip()
|
D | nft_masq.c | 46 u32 plen = sizeof_field(struct nf_nat_range, min_proto.all); in nft_masq_init() local 58 &priv->sreg_proto_min, plen); in nft_masq_init() 65 plen); in nft_masq_init()
|
/net/xfrm/ |
D | xfrm_ipcomp.c | 41 const int plen = skb->len; in ipcomp_decompress() local 46 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress() 52 if (dlen < (plen + sizeof(struct ip_comp_hdr))) in ipcomp_decompress() 55 len = dlen - plen; in ipcomp_decompress() 61 len += plen; in ipcomp_decompress() 128 const int plen = skb->len; in ipcomp_compress() local 138 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress() 142 if ((dlen + sizeof(struct ip_comp_hdr)) >= plen) { in ipcomp_compress()
|
/net/6lowpan/ |
D | iphc.c | 218 ipv6_addr_prefix(&addr_pfx, addr, table[i].plen); in lowpan_iphc_ctx_get_by_addr() 223 if (table[i].plen < 64) in lowpan_iphc_ctx_get_by_addr() 226 addr_plen = table[i].plen; in lowpan_iphc_ctx_get_by_addr() 236 if (table[i].plen > ret->plen) in lowpan_iphc_ctx_get_by_addr() 265 addr_mcast.s6_addr[3] = table[i].plen; in lowpan_iphc_ctx_get_by_mcast_addr() 268 table[i].plen); in lowpan_iphc_ctx_get_by_mcast_addr() 384 ipv6_addr_prefix_copy(ipaddr, &ctx->pfx, ctx->plen); in lowpan_iphc_uncompress_ctx_addr() 391 ipv6_addr_prefix_copy(ipaddr, &ctx->pfx, ctx->plen); in lowpan_iphc_uncompress_ctx_addr() 404 ipv6_addr_prefix_copy(ipaddr, &ctx->pfx, ctx->plen); in lowpan_iphc_uncompress_ctx_addr() 494 ipaddr->s6_addr[3] = ctx->plen; in lowpan_uncompress_multicast_ctx_daddr() [all …]
|
D | debugfs.c | 76 ctx->plen = val; in lowpan_ctx_plen_set() 89 *val = ctx->plen; in lowpan_ctx_plen_get() 207 &t->table[i].pfx, t->table[i].plen, in lowpan_context_show()
|
/net/wireless/ |
D | lib80211_crypt_wep.c | 154 u32 crc, klen, plen; in lib80211_wep_decrypt() local 175 plen = skb->len - hdr_len - 8; in lib80211_wep_decrypt() 178 arc4_crypt(&wep->rx_ctx, pos, pos, plen + 4); in lib80211_wep_decrypt() 180 crc = ~crc32_le(~0, pos, plen); in lib80211_wep_decrypt() 185 if (memcmp(icv, pos + plen, 4) != 0) { in lib80211_wep_decrypt()
|
D | lib80211_crypt_tkip.c | 386 int plen; in lib80211_tkip_decrypt() local 437 plen = skb->len - hdr_len - 12; in lib80211_tkip_decrypt() 440 arc4_crypt(&tkey->rx_ctx_arc4, pos, pos, plen + 4); in lib80211_tkip_decrypt() 442 crc = ~crc32_le(~0, pos, plen); in lib80211_tkip_decrypt() 447 if (memcmp(icv, pos + plen, 4) != 0) { in lib80211_tkip_decrypt()
|
/net/rxrpc/ |
D | key.c | 58 size_t plen; in rxrpc_preparse_xdr_rxkad() local 74 plen = sizeof(*token) + sizeof(*token->kad) + tktlen; in rxrpc_preparse_xdr_rxkad() 75 prep->quotalen = datalen + plen; in rxrpc_preparse_xdr_rxkad() 77 plen -= sizeof(*token); in rxrpc_preparse_xdr_rxkad() 82 token->kad = kzalloc(plen, GFP_KERNEL); in rxrpc_preparse_xdr_rxkad() 282 size_t plen; in rxrpc_preparse() local 342 plen = sizeof(*token->kad) + v1->ticket_length; in rxrpc_preparse() 343 prep->quotalen = plen + sizeof(*token); in rxrpc_preparse() 349 token->kad = kzalloc(plen, GFP_KERNEL); in rxrpc_preparse()
|
/net/ipv4/ |
D | fib_trie.c | 1195 static bool fib_valid_key_len(u32 key, u8 plen, struct netlink_ext_ack *extack) in fib_valid_key_len() argument 1197 if (plen > KEYLENGTH) { in fib_valid_key_len() 1202 if ((plen < KEYLENGTH) && (key << plen)) { in fib_valid_key_len() 1223 u8 plen = cfg->fc_dst_len; in fib_table_insert() local 1224 u8 slen = KEYLENGTH - plen; in fib_table_insert() 1231 if (!fib_valid_key_len(key, plen, extack)) in fib_table_insert() 1234 pr_debug("Insert table=%u %08x/%d\n", tb->tb_id, key, plen); in fib_table_insert() 1324 key, plen, in fib_table_insert() 1333 rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, in fib_table_insert() 1394 err = call_fib_entry_notifiers(net, fib_event, key, plen, in fib_table_insert() [all …]
|
/net/nfc/nci/ |
D | data.c | 70 int plen = skb->len; in nci_push_data_hdr() local 75 hdr->plen = plen; in nci_push_data_hdr()
|
D | core.c | 171 u8 plen = 0; in nci_init_req() local 174 plen = sizeof(struct nci_core_init_v2_cmd); in nci_init_req() 176 nci_send_cmd(ndev, NCI_OP_CORE_INIT_CMD, plen, opt); in nci_init_req() 1360 int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, const void *payload) in nci_send_cmd() argument 1365 pr_debug("opcode 0x%x, plen %d\n", opcode, plen); in nci_send_cmd() 1367 skb = nci_skb_alloc(ndev, (NCI_CTRL_HDR_SIZE + plen), GFP_KERNEL); in nci_send_cmd() 1376 hdr->plen = plen; in nci_send_cmd() 1381 if (plen) in nci_send_cmd() 1382 skb_put_data(skb, payload, plen); in nci_send_cmd()
|
/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 1028 static inline int ip_vs_proc_seqopt(__u8 *p, unsigned int plen, in ip_vs_proc_seqopt() argument 1036 if (plen != sizeof(struct ip_vs_sync_conn_options)) { in ip_vs_proc_seqopt() 1050 static int ip_vs_proc_str(__u8 *p, unsigned int plen, unsigned int *data_len, in ip_vs_proc_str() argument 1054 if (plen > maxlen) { in ip_vs_proc_str() 1062 *data_len = plen; in ip_vs_proc_str() 1105 int plen; in ip_vs_proc_sync_conn() local 1110 plen = *(p++); in ip_vs_proc_sync_conn() 1112 if (!plen || ((p + plen) > msg_end)) in ip_vs_proc_sync_conn() 1117 if (ip_vs_proc_seqopt(p, plen, &opt_flags, &opt)) in ip_vs_proc_sync_conn() 1122 if (ip_vs_proc_str(p, plen, &pe_data_len, &pe_data, in ip_vs_proc_sync_conn() [all …]
|
D | ip_vs_ftp.c | 97 const char *pattern, size_t plen, in ip_vs_ftp_get_addrport() argument 108 if (data_limit - data < plen) { in ip_vs_ftp_get_addrport() 116 if (strncasecmp(data, pattern, plen) != 0) { in ip_vs_ftp_get_addrport() 119 s = data + plen; in ip_vs_ftp_get_addrport()
|
/net/smc/ |
D | smc_clc.c | 826 int len, i, plen, rc; in smc_clc_send_proposal() local 847 plen = sizeof(*pclc_base) + sizeof(*pclc_smcd) + sizeof(*trl); in smc_clc_send_proposal() 860 plen += sizeof(*pclc_prfx) + in smc_clc_send_proposal() 900 plen += sizeof(*v2_ext); in smc_clc_send_proposal() 904 plen += smc_clc_eid_table.ueid_cnt * SMC_MAX_EID_LEN; in smc_clc_send_proposal() 924 plen += sizeof(*smcd_v2_ext); in smc_clc_send_proposal() 932 plen += ini->ism_offered_cnt * in smc_clc_send_proposal() 939 pclc_base->hdr.length = htons(plen); in smc_clc_send_proposal() 975 len = kernel_sendmsg(smc->clcsock, &msg, vec, i, plen); in smc_clc_send_proposal()
|