Lines Matching refs:buf
224 static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf) in ipv6_eth_mc_map() argument
232 buf[0]= 0x33; in ipv6_eth_mc_map()
233 buf[1]= 0x33; in ipv6_eth_mc_map()
235 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32)); in ipv6_eth_mc_map()
238 static inline void ipv6_arcnet_mc_map(const struct in6_addr *addr, char *buf) in ipv6_arcnet_mc_map() argument
240 buf[0] = 0x00; in ipv6_arcnet_mc_map()
244 const unsigned char *broadcast, char *buf) in ipv6_ib_mc_map() argument
248 buf[0] = 0; /* Reserved */ in ipv6_ib_mc_map()
249 buf[1] = 0xff; /* Multicast QPN */ in ipv6_ib_mc_map()
250 buf[2] = 0xff; in ipv6_ib_mc_map()
251 buf[3] = 0xff; in ipv6_ib_mc_map()
252 buf[4] = 0xff; in ipv6_ib_mc_map()
253 buf[5] = 0x10 | scope; /* scope from broadcast address */ in ipv6_ib_mc_map()
254 buf[6] = 0x60; /* IPv6 signature */ in ipv6_ib_mc_map()
255 buf[7] = 0x1b; in ipv6_ib_mc_map()
256 buf[8] = broadcast[8]; /* P_Key */ in ipv6_ib_mc_map()
257 buf[9] = broadcast[9]; in ipv6_ib_mc_map()
258 memcpy(buf + 10, addr->s6_addr + 6, 10); in ipv6_ib_mc_map()
262 const unsigned char *broadcast, char *buf) in ipv6_ipgre_mc_map() argument
265 memcpy(buf, broadcast, 4); in ipv6_ipgre_mc_map()
271 memcpy(buf, &addr->s6_addr32[3], 4); in ipv6_ipgre_mc_map()