OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1982, 1986, 1990, 1993 | 2 * Copyright (c) 1982, 1986, 1990, 1993 |
3 * The Regents of the University of California. All rights reserved. | 3 * The Regents of the University of California. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
555 #define sintosa(sin) ((struct sockaddr *)(sin)) | 555 #define sintosa(sin) ((struct sockaddr *)(sin)) |
556 #define ifatoia(ifa) ((struct in_ifaddr *)(ifa)) | 556 #define ifatoia(ifa) ((struct in_ifaddr *)(ifa)) |
557 | 557 |
558 #endif /* _KERNEL */ | 558 #endif /* _KERNEL */ |
559 | 559 |
560 /* INET6 stuff */ | 560 /* INET6 stuff */ |
561 #define __KAME_NETINET_IN_H_INCLUDED_ | 561 #define __KAME_NETINET_IN_H_INCLUDED_ |
562 #include <netinet6/in6.h> | 562 #include <netinet6/in6.h> |
563 #undef __KAME_NETINET_IN_H_INCLUDED_ | 563 #undef __KAME_NETINET_IN_H_INCLUDED_ |
564 | 564 |
565 __BEGIN_DECLS | |
566 uint32_t htonl(uint32_t hostlong); | |
567 uint16_t htons(uint16_t hostshort); | |
568 uint32_t ntohl(uint32_t networklong); | |
569 uint16_t ntohs(uint16_t networkshort); | |
570 __END_DECLS | |
Sam Clegg
2013/08/08 01:47:25
Where are these normally defined? Why can't we ju
torinmr
2013/08/08 17:01:22
In BSD (and in Linux, as far as I know), they aren
| |
571 | |
565 #endif /* !_NETINET_IN_H_*/ | 572 #endif /* !_NETINET_IN_H_*/ |
OLD | NEW |