1 /* 2 * Copyright (c) 1994 William F. Jolitz. 3 * 386BSD Copyright Restrictions Apply. All Other Rights Reserved. 4 * 5 * $Id: inet.h,v 1.1 94/06/09 18:11:09 bill Exp Locker: bill $ 6 * This file contains potential inline procedures that implement functions 7 * that are used by the inet network protocols. 8 * 9 * These procedures can be "non" inlined to allow for debugging, 10 * profiling, and tracing. 11 */ 12 13 /*__BEGIN_DECLS 14 __END_DECLS */ 15 16 #ifndef __NO_INLINES 17 18 #undef __INLINE 19 #ifndef __NO_INLINES_BUT_EMIT_CODE 20 #define __INLINE extern inline 21 #else 22 #define __INLINE 23 #endif 24 25 #ifndef KERNEL 26 #include <machine/inline/inet/htonl.h> 27 #include <machine/inline/inet/htons.h> 28 #include <machine/inline/inet/ntohl.h> 29 #include <machine/inline/inet/ntohs.h> 30 #else 31 #include "machine/inline/inet/htonl.h" 32 #include "machine/inline/inet/htons.h" 33 #include "machine/inline/inet/ntohl.h" 34 #include "machine/inline/inet/ntohs.h" 35 36 u_short in_cksumiphdr(void *ip); 37 38 #include "machine/inline/inet/in_cksumiphdr.h" 39 #endif 40 41 #undef __INLINE 42 #endif 43