in.h revision 287229
1285612Sdelphij/*- 254359Sroberto * Copyright (c) 2010 Isilon Systems, Inc. 354359Sroberto * Copyright (c) 2010 iX Systems, Inc. 4285612Sdelphij * Copyright (c) 2010 Panasas, Inc. 5285612Sdelphij * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 654359Sroberto * All rights reserved. 754359Sroberto * 854359Sroberto * Redistribution and use in source and binary forms, with or without 954359Sroberto * modification, are permitted provided that the following conditions 1054359Sroberto * are met: 11285612Sdelphij * 1. Redistributions of source code must retain the above copyright 1254359Sroberto * notice unmodified, this list of conditions, and the following 1354359Sroberto * disclaimer. 1454359Sroberto * 2. Redistributions in binary form must reproduce the above copyright 1554359Sroberto * notice, this list of conditions and the following disclaimer in the 1654359Sroberto * documentation and/or other materials provided with the distribution. 1754359Sroberto * 1854359Sroberto * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1954359Sroberto * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29#ifndef _LINUX_IN_H_ 30#define _LINUX_IN_H_ 31 32#include "opt_inet.h" 33 34#include <sys/cdefs.h> 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <netinet/in.h> 38#include <asm/byteorder.h> 39 40#define ipv4_is_zeronet(be) IN_ZERONET(ntohl(be)) 41#define ipv4_is_loopback(be) IN_LOOPBACK(ntohl(be)) 42 43#endif /* _LINUX_IN_H_ */ 44