]> git.saurik.com Git - apple/xnu.git/blame_incremental - bsd/netinet/in_dhcp.h
xnu-1504.9.37.tar.gz
[apple/xnu.git] / bsd / netinet / in_dhcp.h
... / ...
CommitLineData
1#ifndef _NETINET_IN_DHCP_H
2#define _NETINET_IN_DHCP_H
3#include <sys/appleapiopts.h>
4
5/*
6 * Copyright (c) 2007 Apple Inc. All rights reserved.
7 *
8 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
9 *
10 * This file contains Original Code and/or Modifications of Original Code
11 * as defined in and that are subject to the Apple Public Source License
12 * Version 2.0 (the 'License'). You may not use this file except in
13 * compliance with the License. The rights granted to you under the License
14 * may not be used to create, or enable the creation or redistribution of,
15 * unlawful or unlicensed copies of an Apple operating system, or to
16 * circumvent, violate, or enable the circumvention or violation of, any
17 * terms of an Apple operating system software license agreement.
18 *
19 * Please obtain a copy of the License at
20 * http://www.opensource.apple.com/apsl/ and read it before using this file.
21 *
22 * The Original Code and all software distributed under the License are
23 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
24 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
25 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
26 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
27 * Please see the License for the specific language governing rights and
28 * limitations under the License.
29 *
30 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
31 */
32
33/*
34 * in_dhcp.h
35 * - definitions for in_dhcp.c
36 */
37
38extern int
39inet_aifaddr(struct socket * so, const char * name,
40 const struct in_addr * addr,
41 const struct in_addr * mask,
42 const struct in_addr * broadcast);
43
44extern int
45dhcp(struct ifnet * ifp, struct in_addr * iaddr_p, int max_try,
46 struct in_addr * netmask_p, struct in_addr * router_p,
47 struct proc * procp);
48
49#endif /* _NETINET_IN_DHCP_H */