in.h revision 4e468ed2eb86a2406e14f1eca82072ee501d05fd
1762bb9d0ad20320b9f97a841dce57ba5e8e48b07Richard Smith/*
2ba5f6eced29937e4e4851a2c0980744768413d66Nick Lewycky * Copyright (C) 2008 The Android Open Source Project
3762bb9d0ad20320b9f97a841dce57ba5e8e48b07Richard Smith * All rights reserved.
4762bb9d0ad20320b9f97a841dce57ba5e8e48b07Richard Smith *
584fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor * Redistribution and use in source and binary forms, with or without
684fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor * modification, are permitted provided that the following conditions
784fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor * are met:
8ba5f6eced29937e4e4851a2c0980744768413d66Nick Lewycky *  * Redistributions of source code must retain the above copyright
984fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor *    notice, this list of conditions and the following disclaimer.
1084fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor *  * Redistributions in binary form must reproduce the above copyright
1184fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor *    notice, this list of conditions and the following disclaimer in
12ba5f6eced29937e4e4851a2c0980744768413d66Nick Lewycky *    the documentation and/or other materials provided with the
1384fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor *    distribution.
1484fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor *
1584fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1684fb9c0be621c9e4ca4e56f67dae2a0bb6e44821Douglas Gregor * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17162e1c1b487352434552147967c3dd296ebee2f7Richard Smith * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18162e1c1b487352434552147967c3dd296ebee2f7Richard Smith * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19162e1c1b487352434552147967c3dd296ebee2f7Richard Smith * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20c6d990a767150b02337de1136fdb55ccf349f4d1Richard Smith * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
210706df40064d4d7559b4304af79d519033414b84Richard Smith * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
220706df40064d4d7559b4304af79d519033414b84Richard Smith * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
230706df40064d4d7559b4304af79d519033414b84Richard Smith * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
240706df40064d4d7559b4304af79d519033414b84Richard Smith * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
251c94c16317c1a35c1549e022958188eea2567089Richard Smith * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
261c94c16317c1a35c1549e022958188eea2567089Richard Smith * SUCH DAMAGE.
271c94c16317c1a35c1549e022958188eea2567089Richard Smith */
281c94c16317c1a35c1549e022958188eea2567089Richard Smith#ifndef _NETINET_IN_H_
291c94c16317c1a35c1549e022958188eea2567089Richard Smith#define _NETINET_IN_H_
301c94c16317c1a35c1549e022958188eea2567089Richard Smith
311c94c16317c1a35c1549e022958188eea2567089Richard Smith#include <endian.h>
321c94c16317c1a35c1549e022958188eea2567089Richard Smith#include <linux/socket.h>
331c94c16317c1a35c1549e022958188eea2567089Richard Smith#include <linux/in.h>
341c94c16317c1a35c1549e022958188eea2567089Richard Smith#include <linux/in6.h>
351c94c16317c1a35c1549e022958188eea2567089Richard Smith
361c94c16317c1a35c1549e022958188eea2567089Richard Smith__BEGIN_DECLS
371c94c16317c1a35c1549e022958188eea2567089Richard Smith
381c94c16317c1a35c1549e022958188eea2567089Richard Smith#define IPPORT_RESERVED  1024
390706df40064d4d7559b4304af79d519033414b84Richard Smith
40bdad7a2e21686296b78dac6190b78d11c996f6d7Richard Smithextern int bindresvport (int sd, struct sockaddr_in *sin);
41bdad7a2e21686296b78dac6190b78d11c996f6d7Richard Smith
42bdad7a2e21686296b78dac6190b78d11c996f6d7Richard Smith__END_DECLS
43bdad7a2e21686296b78dac6190b78d11c996f6d7Richard Smith
44bdad7a2e21686296b78dac6190b78d11c996f6d7Richard Smith#endif /* _NETINET_IN_H_ */
45bdad7a2e21686296b78dac6190b78d11c996f6d7Richard Smith