defs.h (20342) | defs.h (20609) |
---|---|
1/* 2 * Copyright (c) 1983, 1988, 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 * @(#)defs.h 8.1 (Berkeley) 6/5/93 | 1/* 2 * Copyright (c) 1983, 1988, 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 * @(#)defs.h 8.1 (Berkeley) 6/5/93 |
34 * $Id: defs.h,v 1.4 1996/12/10 17:07:36 wollman Exp $ | 34 * $Id: defs.h,v 1.5 1996/12/11 21:04:08 wollman Exp $ |
35 */ 36 37/* Definitions for RIPv2 routing process. 38 * 39 * This code is based on the 4.4BSD `routed` daemon, with extensions to 40 * support: 41 * RIPv2, including variable length subnet masks. 42 * Router Discovery --- 24 unchanged lines hidden (view full) --- 67#include <string.h> 68#ifdef sgi 69#include <strings.h> 70#include <bstring.h> 71#endif 72#include <stdarg.h> 73#include <syslog.h> 74#include <time.h> | 35 */ 36 37/* Definitions for RIPv2 routing process. 38 * 39 * This code is based on the 4.4BSD `routed` daemon, with extensions to 40 * support: 41 * RIPv2, including variable length subnet masks. 42 * Router Discovery --- 24 unchanged lines hidden (view full) --- 67#include <string.h> 68#ifdef sgi 69#include <strings.h> 70#include <bstring.h> 71#endif 72#include <stdarg.h> 73#include <syslog.h> 74#include <time.h> |
75#include <sys/time.h> |
|
75#include <sys/types.h> 76#include <sys/param.h> 77#include <sys/ioctl.h> 78#include <sys/sysctl.h> 79#include <sys/socket.h> 80#include <sys/time.h> 81#ifdef sgi 82#include <net/radix.h> 83#else 84#include "radix.h" 85#endif 86#include <net/if.h> 87#include <net/route.h> 88#include <net/if_dl.h> 89#include <netinet/in.h> 90#include <arpa/inet.h> 91#define RIPVERSION RIPv2 92#include <protocols/routed.h> 93 | 76#include <sys/types.h> 77#include <sys/param.h> 78#include <sys/ioctl.h> 79#include <sys/sysctl.h> 80#include <sys/socket.h> 81#include <sys/time.h> 82#ifdef sgi 83#include <net/radix.h> 84#else 85#include "radix.h" 86#endif 87#include <net/if.h> 88#include <net/route.h> 89#include <net/if_dl.h> 90#include <netinet/in.h> 91#include <arpa/inet.h> 92#define RIPVERSION RIPv2 93#include <protocols/routed.h> 94 |
94#ifdef sgi 95#define USE_PASSIFNAME 96#endif | |
97 | 95 |
98 | |
99/* Type of an IP address. 100 * Some systems do not like to pass structures, so do not use in_addr. 101 * Some systems think a long has 64 bits, which would be a gross waste. 102 * So define it here so it can be changed for the target system. 103 * It should be defined somewhere netinet/in.h, but it is not. 104 */ 105#ifdef sgi 106#define naddr __uint32_t --- 520 unchanged lines hidden --- | 96/* Type of an IP address. 97 * Some systems do not like to pass structures, so do not use in_addr. 98 * Some systems think a long has 64 bits, which would be a gross waste. 99 * So define it here so it can be changed for the target system. 100 * It should be defined somewhere netinet/in.h, but it is not. 101 */ 102#ifdef sgi 103#define naddr __uint32_t --- 520 unchanged lines hidden --- |