Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(630)

Side by Side Diff: native_client_sdk/src/libraries/third_party/newlib-extras/netinet6/in6.h

Issue 105943006: nacl_io: Add inet_pton() and ip6addr_* consts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 #ifdef __cplusplus
220 extern "C" {
221 #endif
Sam Clegg 2013/12/06 02:31:36 Looks like the convention in these headers is to u
Sergey Ulanov 2013/12/06 20:20:22 Done.
222
218 extern const struct in6_addr in6addr_any; 223 extern const struct in6_addr in6addr_any;
219 extern const struct in6_addr in6addr_loopback; 224 extern const struct in6_addr in6addr_loopback;
220 extern const struct in6_addr in6addr_nodelocal_allnodes; 225 extern const struct in6_addr in6addr_nodelocal_allnodes;
221 extern const struct in6_addr in6addr_linklocal_allnodes; 226 extern const struct in6_addr in6addr_linklocal_allnodes;
222 extern const struct in6_addr in6addr_linklocal_allrouters; 227 extern const struct in6_addr in6addr_linklocal_allrouters;
223 228
229 #ifdef __cplusplus
230 } // extern "C"
231 #endif
232
224 /* 233 /*
225 * Equality 234 * Equality
226 * NOTE: Some of kernel programming environment (for example, openbsd/sparc) 235 * NOTE: Some of kernel programming environment (for example, openbsd/sparc)
227 * does not supply memcmp(). For userland memcmp() is preferred as it is 236 * does not supply memcmp(). For userland memcmp() is preferred as it is
228 * in ANSI standard. 237 * in ANSI standard.
229 */ 238 */
230 #ifdef _KERNEL 239 #ifdef _KERNEL
231 #define IN6_ARE_ADDR_EQUAL(a, b) \ 240 #define IN6_ARE_ADDR_EQUAL(a, b) \
232 (bcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0) 241 (bcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
233 #else 242 #else
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 extern int inet6_opt_get_val __P((void *, size_t, void *, int)); 647 extern int inet6_opt_get_val __P((void *, size_t, void *, int));
639 extern size_t inet6_rth_space __P((int, int)); 648 extern size_t inet6_rth_space __P((int, int));
640 extern void *inet6_rth_init __P((void *, int, int, int)); 649 extern void *inet6_rth_init __P((void *, int, int, int));
641 extern int inet6_rth_add __P((void *, const struct in6_addr *)); 650 extern int inet6_rth_add __P((void *, const struct in6_addr *));
642 extern int inet6_rth_reverse __P((const void *, void *)); 651 extern int inet6_rth_reverse __P((const void *, void *));
643 extern int inet6_rth_segments __P((const void *)); 652 extern int inet6_rth_segments __P((const void *));
644 extern struct in6_addr *inet6_rth_getaddr __P((const void *, int)); 653 extern struct in6_addr *inet6_rth_getaddr __P((const void *, int));
645 __END_DECLS 654 __END_DECLS
646 655
647 #endif /* !_NETINET6_IN6_H_ */ 656 #endif /* !_NETINET6_IN6_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698