| OLD | NEW |
| 1 /* $FreeBSD: src/sys/netinet6/in6.h,v 1.19 2002/04/19 04:46:22 suz Exp $
*/ | 1 /* $FreeBSD: src/sys/netinet6/in6.h,v 1.19 2002/04/19 04:46:22 suz Exp $
*/ |
| 2 /* $KAME: in6.h,v 1.89 2001/05/27 13:28:35 itojun Exp $ */ | 2 /* $KAME: in6.h,v 1.89 2001/05/27 13:28:35 itojun Exp $ */ |
| 3 | 3 |
| 4 /* | 4 /* |
| 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. | 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
| 6 * All rights reserved. | 6 * All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 #define IN6ADDR_NODELOCAL_ALLNODES_INIT \ | 208 #define IN6ADDR_NODELOCAL_ALLNODES_INIT \ |
| 209 {{{ 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ | 209 {{{ 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| 210 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}} | 210 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}} |
| 211 #define IN6ADDR_LINKLOCAL_ALLNODES_INIT \ | 211 #define IN6ADDR_LINKLOCAL_ALLNODES_INIT \ |
| 212 {{{ 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ | 212 {{{ 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| 213 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}} | 213 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }}} |
| 214 #define IN6ADDR_LINKLOCAL_ALLROUTERS_INIT \ | 214 #define IN6ADDR_LINKLOCAL_ALLROUTERS_INIT \ |
| 215 {{{ 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ | 215 {{{ 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ |
| 216 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 }}} | 216 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 }}} |
| 217 | 217 |
| 218 |
| 219 __BEGIN_DECLS |
| 220 |
| 218 extern const struct in6_addr in6addr_any; | 221 extern const struct in6_addr in6addr_any; |
| 219 extern const struct in6_addr in6addr_loopback; | 222 extern const struct in6_addr in6addr_loopback; |
| 220 extern const struct in6_addr in6addr_nodelocal_allnodes; | 223 extern const struct in6_addr in6addr_nodelocal_allnodes; |
| 221 extern const struct in6_addr in6addr_linklocal_allnodes; | 224 extern const struct in6_addr in6addr_linklocal_allnodes; |
| 222 extern const struct in6_addr in6addr_linklocal_allrouters; | 225 extern const struct in6_addr in6addr_linklocal_allrouters; |
| 223 | 226 |
| 227 __END_DECLS |
| 228 |
| 224 /* | 229 /* |
| 225 * Equality | 230 * Equality |
| 226 * NOTE: Some of kernel programming environment (for example, openbsd/sparc) | 231 * NOTE: Some of kernel programming environment (for example, openbsd/sparc) |
| 227 * does not supply memcmp(). For userland memcmp() is preferred as it is | 232 * does not supply memcmp(). For userland memcmp() is preferred as it is |
| 228 * in ANSI standard. | 233 * in ANSI standard. |
| 229 */ | 234 */ |
| 230 #ifdef _KERNEL | 235 #ifdef _KERNEL |
| 231 #define IN6_ARE_ADDR_EQUAL(a, b) \ | 236 #define IN6_ARE_ADDR_EQUAL(a, b) \ |
| 232 (bcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) | 237 (bcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) |
| 233 #else | 238 #else |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 extern int inet6_opt_get_val __P((void *, size_t, void *, int)); | 643 extern int inet6_opt_get_val __P((void *, size_t, void *, int)); |
| 639 extern size_t inet6_rth_space __P((int, int)); | 644 extern size_t inet6_rth_space __P((int, int)); |
| 640 extern void *inet6_rth_init __P((void *, int, int, int)); | 645 extern void *inet6_rth_init __P((void *, int, int, int)); |
| 641 extern int inet6_rth_add __P((void *, const struct in6_addr *)); | 646 extern int inet6_rth_add __P((void *, const struct in6_addr *)); |
| 642 extern int inet6_rth_reverse __P((const void *, void *)); | 647 extern int inet6_rth_reverse __P((const void *, void *)); |
| 643 extern int inet6_rth_segments __P((const void *)); | 648 extern int inet6_rth_segments __P((const void *)); |
| 644 extern struct in6_addr *inet6_rth_getaddr __P((const void *, int)); | 649 extern struct in6_addr *inet6_rth_getaddr __P((const void *, int)); |
| 645 __END_DECLS | 650 __END_DECLS |
| 646 | 651 |
| 647 #endif /* !_NETINET6_IN6_H_ */ | 652 #endif /* !_NETINET6_IN6_H_ */ |
| OLD | NEW |