Lines Matching refs:s6_addr

99 	((((a)->s6_addr[8])  == (((m)[0]) ^ 0x02)) &&	\
100 (((a)->s6_addr[9]) == (m)[1]) && \
101 (((a)->s6_addr[10]) == (m)[2]) && \
102 (((a)->s6_addr[11]) == (m)[3]) && \
103 (((a)->s6_addr[12]) == (m)[4]) && \
104 (((a)->s6_addr[13]) == (m)[5]) && \
105 (((a)->s6_addr[14]) == (m)[6]) && \
106 (((a)->s6_addr[15]) == (m)[7]))
113 (((a)->s6_addr[10]) == 0) && \
114 (((a)->s6_addr[11]) == 0xff) && \
115 (((a)->s6_addr[12]) == 0xfe) && \
116 (((a)->s6_addr[13]) == 0))
126 (((a)->s6_addr[10]) == 0))
135 (((a)->s6_addr[12]) == 0))
139 ((((a)->s6_addr[1]) == 2) && \
146 (((a)->s6_addr[14]) == 0))
149 (!(hdr->saddr.s6_addr[1] & 0x3f) && \
175 ipaddr->s6_addr[0] = 0xFE; in lowpan_iphc_uncompress_802154_lladdr()
176 ipaddr->s6_addr[1] = 0x80; in lowpan_iphc_uncompress_802154_lladdr()
177 ipaddr->s6_addr[11] = 0xFF; in lowpan_iphc_uncompress_802154_lladdr()
178 ipaddr->s6_addr[12] = 0xFE; in lowpan_iphc_uncompress_802154_lladdr()
265 addr_mcast.s6_addr[3] = table[i].plen; in lowpan_iphc_ctx_get_by_mcast_addr()
270 memcpy(&addr_mcast.s6_addr[4], &network_pfx, 8); in lowpan_iphc_ctx_get_by_mcast_addr()
314 fail = lowpan_fetch_skb(skb, ipaddr->s6_addr, 16); in lowpan_iphc_uncompress_addr()
319 ipaddr->s6_addr[0] = 0xFE; in lowpan_iphc_uncompress_addr()
320 ipaddr->s6_addr[1] = 0x80; in lowpan_iphc_uncompress_addr()
321 fail = lowpan_fetch_skb(skb, &ipaddr->s6_addr[8], 8); in lowpan_iphc_uncompress_addr()
326 ipaddr->s6_addr[0] = 0xFE; in lowpan_iphc_uncompress_addr()
327 ipaddr->s6_addr[1] = 0x80; in lowpan_iphc_uncompress_addr()
328 ipaddr->s6_addr[11] = 0xFF; in lowpan_iphc_uncompress_addr()
329 ipaddr->s6_addr[12] = 0xFE; in lowpan_iphc_uncompress_addr()
330 fail = lowpan_fetch_skb(skb, &ipaddr->s6_addr[14], 2); in lowpan_iphc_uncompress_addr()
355 ipaddr->s6_addr, 16); in lowpan_iphc_uncompress_addr()
383 fail = lowpan_fetch_skb(skb, &ipaddr->s6_addr[8], 8); in lowpan_iphc_uncompress_ctx_addr()
388 ipaddr->s6_addr[11] = 0xFF; in lowpan_iphc_uncompress_ctx_addr()
389 ipaddr->s6_addr[12] = 0xFE; in lowpan_iphc_uncompress_ctx_addr()
390 fail = lowpan_fetch_skb(skb, &ipaddr->s6_addr[14], 2); in lowpan_iphc_uncompress_ctx_addr()
418 ipaddr->s6_addr, 16); in lowpan_iphc_uncompress_ctx_addr()
437 fail = lowpan_fetch_skb(skb, ipaddr->s6_addr, 16); in lowpan_uncompress_multicast_daddr()
443 ipaddr->s6_addr[0] = 0xFF; in lowpan_uncompress_multicast_daddr()
444 fail = lowpan_fetch_skb(skb, &ipaddr->s6_addr[1], 1); in lowpan_uncompress_multicast_daddr()
445 fail |= lowpan_fetch_skb(skb, &ipaddr->s6_addr[11], 5); in lowpan_uncompress_multicast_daddr()
451 ipaddr->s6_addr[0] = 0xFF; in lowpan_uncompress_multicast_daddr()
452 fail = lowpan_fetch_skb(skb, &ipaddr->s6_addr[1], 1); in lowpan_uncompress_multicast_daddr()
453 fail |= lowpan_fetch_skb(skb, &ipaddr->s6_addr[13], 3); in lowpan_uncompress_multicast_daddr()
459 ipaddr->s6_addr[0] = 0xFF; in lowpan_uncompress_multicast_daddr()
460 ipaddr->s6_addr[1] = 0x02; in lowpan_uncompress_multicast_daddr()
461 fail = lowpan_fetch_skb(skb, &ipaddr->s6_addr[15], 1); in lowpan_uncompress_multicast_daddr()
474 ipaddr->s6_addr, 16); in lowpan_uncompress_multicast_daddr()
487 ipaddr->s6_addr[0] = 0xFF; in lowpan_uncompress_multicast_ctx_daddr()
488 fail = lowpan_fetch_skb(skb, &ipaddr->s6_addr[1], 2); in lowpan_uncompress_multicast_ctx_daddr()
489 fail |= lowpan_fetch_skb(skb, &ipaddr->s6_addr[12], 4); in lowpan_uncompress_multicast_ctx_daddr()
494 ipaddr->s6_addr[3] = ctx->plen; in lowpan_uncompress_multicast_ctx_daddr()
498 memcpy(&ipaddr->s6_addr[4], &network_pfx, 8); in lowpan_uncompress_multicast_ctx_daddr()
804 memcpy(&tmp.s6_addr[8], &extended_addr, EUI64_ADDR_LEN); in lowpan_iphc_compress_ctx_802154_lladdr()
806 tmp.s6_addr[8] ^= 0x02; in lowpan_iphc_compress_ctx_802154_lladdr()
813 tmp.s6_addr[11] = 0xFF; in lowpan_iphc_compress_ctx_802154_lladdr()
814 tmp.s6_addr[12] = 0xFE; in lowpan_iphc_compress_ctx_802154_lladdr()
872 tmp.s6_addr[11] = 0xFF; in lowpan_compress_ctx_addr()
873 tmp.s6_addr[12] = 0xFE; in lowpan_compress_ctx_addr()
874 memcpy(&tmp.s6_addr[14], &ipaddr->s6_addr[14], 2); in lowpan_compress_ctx_addr()
878 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[14], 2); in lowpan_compress_ctx_addr()
885 memcpy(&tmp.s6_addr[8], &ipaddr->s6_addr[8], 8); in lowpan_compress_ctx_addr()
889 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[8], 8); in lowpan_compress_ctx_addr()
926 tmp.s6_addr[0] = 0xFE; in lowpan_iphc_compress_802154_lladdr()
927 tmp.s6_addr[1] = 0x80; in lowpan_iphc_compress_802154_lladdr()
928 tmp.s6_addr[11] = 0xFF; in lowpan_iphc_compress_802154_lladdr()
929 tmp.s6_addr[12] = 0xFE; in lowpan_iphc_compress_802154_lladdr()
1092 memcpy(data, &ipaddr->s6_addr[1], 2); in lowpan_iphc_mcast_ctx_addr_compress()
1094 memcpy(&data[1], &ipaddr->s6_addr[11], 4); in lowpan_iphc_mcast_ctx_addr_compress()
1108 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[15], 1); in lowpan_iphc_mcast_addr_compress()
1113 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[1], 1); in lowpan_iphc_mcast_addr_compress()
1114 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[13], 3); in lowpan_iphc_mcast_addr_compress()
1119 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[1], 1); in lowpan_iphc_mcast_addr_compress()
1120 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[11], 5); in lowpan_iphc_mcast_addr_compress()
1124 lowpan_push_hc_data(hc_ptr, ipaddr->s6_addr, 16); in lowpan_iphc_mcast_addr_compress()
1250 hdr->saddr.s6_addr, 16); in lowpan_header_compress()
1287 hdr->daddr.s6_addr, 16); in lowpan_header_compress()