Deleted Added
full compact
in.h (37409) in.h (38482)
1/*
2 * Copyright (c) 1982, 1986, 1990, 1993
3 * The Regents of the University of California. 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

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)in.h 8.3 (Berkeley) 1/3/94
1/*
2 * Copyright (c) 1982, 1986, 1990, 1993
3 * The Regents of the University of California. 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

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)in.h 8.3 (Berkeley) 1/3/94
34 * $Id: in.h,v 1.35 1998/06/06 20:45:25 julian Exp $
34 * $Id: in.h,v 1.36 1998/07/06 03:20:12 julian Exp $
35 */
36
37#ifndef _NETINET_IN_H_
38#define _NETINET_IN_H_
39
40/*
41 * Constants and structures defined by the internet system,
42 * Per RFC 790, September 1981, and numerous additions.

--- 381 unchanged lines hidden (view full) ---

424struct ifnet; struct mbuf; /* forward declarations for Standard C */
425
426int in_broadcast __P((struct in_addr, struct ifnet *));
427int in_canforward __P((struct in_addr));
428int in_cksum __P((struct mbuf *, int));
429int in_localaddr __P((struct in_addr));
430char *inet_ntoa __P((struct in_addr)); /* in libkern */
431
35 */
36
37#ifndef _NETINET_IN_H_
38#define _NETINET_IN_H_
39
40/*
41 * Constants and structures defined by the internet system,
42 * Per RFC 790, September 1981, and numerous additions.

--- 381 unchanged lines hidden (view full) ---

424struct ifnet; struct mbuf; /* forward declarations for Standard C */
425
426int in_broadcast __P((struct in_addr, struct ifnet *));
427int in_canforward __P((struct in_addr));
428int in_cksum __P((struct mbuf *, int));
429int in_localaddr __P((struct in_addr));
430char *inet_ntoa __P((struct in_addr)); /* in libkern */
431
432/* Firewall hooks */
433struct ip;
434typedef int ip_fw_chk_t __P((struct ip**, int, struct ifnet*, u_int16_t*, struct mbuf**, struct sockaddr_in**));
435typedef int ip_fw_ctl_t __P((int, struct mbuf**));
436extern ip_fw_chk_t *ip_fw_chk_ptr;
437extern ip_fw_ctl_t *ip_fw_ctl_ptr;
438
439/* IP NAT hooks */
440typedef int ip_nat_t __P((struct ip**, struct mbuf**, struct ifnet*, int));
441typedef int ip_nat_ctl_t __P((int, struct mbuf**));
442extern ip_nat_t *ip_nat_ptr;
443extern ip_nat_ctl_t *ip_nat_ctl_ptr;
444#define IP_NAT_IN 0x00000001
445#define IP_NAT_OUT 0x00000002
446
447#endif /* KERNEL */
448
449#endif
432#endif /* KERNEL */
433
434#endif