Lines Matching refs:buf
198 static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf)
206 buf[0]= 0x33;
207 buf[1]= 0x33;
209 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32));
212 static inline void ipv6_tr_mc_map(const struct in6_addr *addr, char *buf)
232 buf[0]=0xC0;
233 buf[1]=0x00;
234 buf[2]=0x01;
235 buf[3]=0x00;
236 buf[4]=0x00;
237 buf[5]=0x00;
247 buf[0]=0xC0;
248 buf[1]=0x00;
249 buf[2]=0x02;
250 buf[3]=0x00;
251 buf[4]=0x00;
252 buf[5]=0x00;
257 buf[0]=0xC0;
258 buf[1]=0x00;
259 buf[2]=0x00;
260 buf[3]=0x01 << i ;
261 buf[4]=0x00;
262 buf[5]=0x00;
266 static inline void ipv6_arcnet_mc_map(const struct in6_addr *addr, char *buf)
268 buf[0] = 0x00;
272 const unsigned char *broadcast, char *buf)
276 buf[0] = 0; /* Reserved */
277 buf[1] = 0xff; /* Multicast QPN */
278 buf[2] = 0xff;
279 buf[3] = 0xff;
280 buf[4] = 0xff;
281 buf[5] = 0x10 | scope; /* scope from broadcast address */
282 buf[6] = 0x60; /* IPv6 signature */
283 buf[7] = 0x1b;
284 buf[8] = broadcast[8]; /* P_Key */
285 buf[9] = broadcast[9];
286 memcpy(buf + 10, addr->s6_addr + 6, 10);
290 const unsigned char *broadcast, char *buf)
293 memcpy(buf, broadcast, 4);
299 memcpy(buf, &addr->s6_addr32[3], 4);