if_inet6.h (828d7d7b19446bf5a40928da47955c575a454c75) if_inet6.h (b71d1d426d263b0b6cb5760322efebbfc89d4463)
1/*
2 * inet6 interface/address list definitions
3 * Linux INET6 implementation
4 *
5 * Authors:
6 * Pedro Roque <roque@di.fc.ul.pt>
7 *
8 *

--- 182 unchanged lines hidden (view full) ---

191 struct neigh_parms *nd_parms;
192 struct inet6_dev *next;
193 struct ipv6_devconf cnf;
194 struct ipv6_devstat stats;
195 unsigned long tstamp; /* ipv6InterfaceTable update timestamp */
196 struct rcu_head rcu;
197};
198
1/*
2 * inet6 interface/address list definitions
3 * Linux INET6 implementation
4 *
5 * Authors:
6 * Pedro Roque <roque@di.fc.ul.pt>
7 *
8 *

--- 182 unchanged lines hidden (view full) ---

191 struct neigh_parms *nd_parms;
192 struct inet6_dev *next;
193 struct ipv6_devconf cnf;
194 struct ipv6_devstat stats;
195 unsigned long tstamp; /* ipv6InterfaceTable update timestamp */
196 struct rcu_head rcu;
197};
198
199static inline void ipv6_eth_mc_map(struct in6_addr *addr, char *buf)
199static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf)
200{
201 /*
202 * +-------+-------+-------+-------+-------+-------+
203 * | 33 | 33 | DST13 | DST14 | DST15 | DST16 |
204 * +-------+-------+-------+-------+-------+-------+
205 */
206
207 buf[0]= 0x33;
208 buf[1]= 0x33;
209
210 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32));
211}
212
200{
201 /*
202 * +-------+-------+-------+-------+-------+-------+
203 * | 33 | 33 | DST13 | DST14 | DST15 | DST16 |
204 * +-------+-------+-------+-------+-------+-------+
205 */
206
207 buf[0]= 0x33;
208 buf[1]= 0x33;
209
210 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32));
211}
212
213static inline void ipv6_tr_mc_map(struct in6_addr *addr, char *buf)
213static inline void ipv6_tr_mc_map(const struct in6_addr *addr, char *buf)
214{
215 /* All nodes FF01::1, FF02::1, FF02::1:FFxx:xxxx */
216
217 if (((addr->s6_addr[0] == 0xFF) &&
218 ((addr->s6_addr[1] == 0x01) || (addr->s6_addr[1] == 0x02)) &&
219 (addr->s6_addr16[1] == 0) &&
220 (addr->s6_addr32[1] == 0) &&
221 (addr->s6_addr32[2] == 0) &&

--- 85 unchanged lines hidden ---
214{
215 /* All nodes FF01::1, FF02::1, FF02::1:FFxx:xxxx */
216
217 if (((addr->s6_addr[0] == 0xFF) &&
218 ((addr->s6_addr[1] == 0x01) || (addr->s6_addr[1] == 0x02)) &&
219 (addr->s6_addr16[1] == 0) &&
220 (addr->s6_addr32[1] == 0) &&
221 (addr->s6_addr32[2] == 0) &&

--- 85 unchanged lines hidden ---