ntoh.c (05b432d2d18bddd0672b3cde6aad1680c174321f) | ntoh.c (ffdd70376ad2f72a20581512ebbbe4f88204d99f) |
---|---|
1/*- 2 * Copyright (c) 2006 Olivier Houchard 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 * POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> 28__FBSDID("$FreeBSD$"); 29 30#include <sys/endian.h> | 1/*- 2 * Copyright (c) 2006 Olivier Houchard 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 * POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> 28__FBSDID("$FreeBSD$"); 29 30#include <sys/endian.h> |
31#define _BYTEORDER_FUNC_DEFINED 32#include <arpa/inet.h> |
|
31 32uint32_t 33htonl(uint32_t hl) 34{ 35 36 return (__htonl(hl)); 37} 38 --- 20 unchanged lines hidden --- | 33 34uint32_t 35htonl(uint32_t hl) 36{ 37 38 return (__htonl(hl)); 39} 40 --- 20 unchanged lines hidden --- |