Lines Matching refs:buf
211 static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf) in ipv6_eth_mc_map() argument
219 buf[0]= 0x33; in ipv6_eth_mc_map()
220 buf[1]= 0x33; in ipv6_eth_mc_map()
222 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32)); in ipv6_eth_mc_map()
225 static inline void ipv6_arcnet_mc_map(const struct in6_addr *addr, char *buf) in ipv6_arcnet_mc_map() argument
227 buf[0] = 0x00; in ipv6_arcnet_mc_map()
231 const unsigned char *broadcast, char *buf) in ipv6_ib_mc_map() argument
235 buf[0] = 0; /* Reserved */ in ipv6_ib_mc_map()
236 buf[1] = 0xff; /* Multicast QPN */ in ipv6_ib_mc_map()
237 buf[2] = 0xff; in ipv6_ib_mc_map()
238 buf[3] = 0xff; in ipv6_ib_mc_map()
239 buf[4] = 0xff; in ipv6_ib_mc_map()
240 buf[5] = 0x10 | scope; /* scope from broadcast address */ in ipv6_ib_mc_map()
241 buf[6] = 0x60; /* IPv6 signature */ in ipv6_ib_mc_map()
242 buf[7] = 0x1b; in ipv6_ib_mc_map()
243 buf[8] = broadcast[8]; /* P_Key */ in ipv6_ib_mc_map()
244 buf[9] = broadcast[9]; in ipv6_ib_mc_map()
245 memcpy(buf + 10, addr->s6_addr + 6, 10); in ipv6_ib_mc_map()
249 const unsigned char *broadcast, char *buf) in ipv6_ipgre_mc_map() argument
252 memcpy(buf, broadcast, 4); in ipv6_ipgre_mc_map()
258 memcpy(buf, &addr->s6_addr32[3], 4); in ipv6_ipgre_mc_map()