Home
last modified time | relevance | path

Searched refs:pfx (Results 1 – 8 of 8) sorted by relevance

/net/6lowpan/
Ddebugfs.c105 be16_to_cpu(ctx->pfx.s6_addr16[0]), in lowpan_ctx_pfx_show()
106 be16_to_cpu(ctx->pfx.s6_addr16[1]), in lowpan_ctx_pfx_show()
107 be16_to_cpu(ctx->pfx.s6_addr16[2]), in lowpan_ctx_pfx_show()
108 be16_to_cpu(ctx->pfx.s6_addr16[3]), in lowpan_ctx_pfx_show()
109 be16_to_cpu(ctx->pfx.s6_addr16[4]), in lowpan_ctx_pfx_show()
110 be16_to_cpu(ctx->pfx.s6_addr16[5]), in lowpan_ctx_pfx_show()
111 be16_to_cpu(ctx->pfx.s6_addr16[6]), in lowpan_ctx_pfx_show()
112 be16_to_cpu(ctx->pfx.s6_addr16[7])); in lowpan_ctx_pfx_show()
151 ctx->pfx.s6_addr16[i] = cpu_to_be16(addr[i] & 0xffff); in lowpan_ctx_pfx_write()
207 &t->table[i].pfx, t->table[i].plen, in lowpan_context_show()
Diphc.c228 if (ipv6_prefix_equal(&addr_pfx, &table[i].pfx, addr_plen)) { in lowpan_iphc_ctx_get_by_addr()
267 ipv6_addr_prefix(&network_pfx, &table[i].pfx, 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()
496 ipv6_addr_prefix(&network_pfx, &ctx->pfx, ctx->plen); in lowpan_uncompress_multicast_ctx_daddr()
808 ipv6_addr_prefix_copy(&tmp, &ctx->pfx, ctx->plen); in lowpan_iphc_compress_ctx_802154_lladdr()
818 ipv6_addr_prefix_copy(&tmp, &ctx->pfx, ctx->plen); in lowpan_iphc_compress_ctx_802154_lladdr()
841 ipv6_addr_prefix_copy(&tmp, &ctx->pfx, ctx->plen); in lowpan_iphc_addr_equal()
876 ipv6_addr_prefix_copy(&tmp, &ctx->pfx, ctx->plen); in lowpan_compress_ctx_addr()
[all …]
/net/ipv6/
Drpl.c15 const void *post, unsigned char pfx) in ipv6_rpl_addr_decompress() argument
17 memcpy(dst, daddr, pfx); in ipv6_rpl_addr_decompress()
18 memcpy(&dst->s6_addr[pfx], post, IPV6_PFXTAIL_LEN(pfx)); in ipv6_rpl_addr_decompress()
22 unsigned char pfx) in ipv6_rpl_addr_compress() argument
24 memcpy(dst, &addr->s6_addr[pfx], IPV6_PFXTAIL_LEN(pfx)); in ipv6_rpl_addr_compress()
Daddrconf.c170 static struct fib6_info *addrconf_get_prefix_route(const struct in6_addr *pfx,
1072 int addr_type = ipv6_addr_type(cfg->pfx); in ipv6_add_addr()
1101 .i6vi_addr = *cfg->pfx, in ipv6_add_addr()
1118 f6i = addrconf_f6i_alloc(net, idev, cfg->pfx, false, gfp_flags); in ipv6_add_addr()
1127 ifa->addr = *cfg->pfx; in ipv6_add_addr()
1429 cfg.pfx = &addr; in ipv6_create_tempaddr()
1430 cfg.scope = ipv6_addr_scope(cfg.pfx); in ipv6_create_tempaddr()
2131 .pfx = &new_addr, in addrconf_dad_failure()
2432 addrconf_prefix_route(struct in6_addr *pfx, int plen, u32 metric, in addrconf_prefix_route() argument
2448 cfg.fc_dst = *pfx; in addrconf_prefix_route()
[all …]
Daddrlabel.c390 struct in6_addr *pfx; in ip6addrlbl_newdel() local
407 pfx = nla_data(tb[IFAL_ADDRESS]); in ip6addrlbl_newdel()
421 err = ip6addrlbl_add(net, pfx, ifal->ifal_prefixlen, in ip6addrlbl_newdel()
426 err = ip6addrlbl_del(net, pfx, ifal->ifal_prefixlen, in ip6addrlbl_newdel()
/net/dsa/
Dmaster.c151 uint8_t pfx[4]; in dsa_master_get_strings() local
154 snprintf(pfx, sizeof(pfx), "p%.2d", port); in dsa_master_get_strings()
156 pfx[sizeof(pfx) - 1] = '_'; in dsa_master_get_strings()
183 memmove(ndata + (i * len + sizeof(pfx)), in dsa_master_get_strings()
184 ndata + i * len, len - sizeof(pfx)); in dsa_master_get_strings()
185 memcpy(ndata + i * len, pfx, sizeof(pfx)); in dsa_master_get_strings()
/net/ipv6/netfilter/
Dip6t_NPT.c18 struct in6_addr pfx; in ip6t_npt_checkentry() local
25 ipv6_addr_prefix(&pfx, &npt->src_pfx.in6, npt->src_pfx_len); in ip6t_npt_checkentry()
26 if (!ipv6_addr_equal(&pfx, &npt->src_pfx.in6)) in ip6t_npt_checkentry()
28 ipv6_addr_prefix(&pfx, &npt->dst_pfx.in6, npt->dst_pfx_len); in ip6t_npt_checkentry()
29 if (!ipv6_addr_equal(&pfx, &npt->dst_pfx.in6)) in ip6t_npt_checkentry()
/net/caif/
Dcfpkt_skbuff.c79 static struct cfpkt *cfpkt_create_pfx(u16 len, u16 pfx) in cfpkt_create_pfx() argument
83 skb = alloc_skb(len + pfx, GFP_ATOMIC); in cfpkt_create_pfx()
87 skb_reserve(skb, pfx); in cfpkt_create_pfx()