diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-03 22:30:53 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-03 22:30:53 +0000 |
commit | 35a125282d2999b4fd6dea7bbf4696f937f5a052 (patch) | |
tree | 16c80ae6c1294751a0c34c39af0d4e9cd3a77d60 /sys/netinet/in.h | |
parent | 4f317e580dfce2348ec5cfc05dfde20ed8440910 (diff) |
From NetBSD: 960217 merge
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r-- | sys/netinet/in.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h index b1974b046a0..9bfe6041ec2 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -1,4 +1,5 @@ -/* $NetBSD: in.h,v 1.17 1995/06/04 05:06:55 mycroft Exp $ */ +/* $OpenBSD: in.h,v 1.5 1996/03/03 22:30:29 niklas Exp $ */ +/* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -91,7 +92,7 @@ struct in_addr { * on these macros not doing byte-swapping. */ #ifdef _KERNEL -#define __IPADDR(x) htonl((u_int32_t)(x)) +#define __IPADDR(x) ((u_int32_t) htonl((u_int32_t)(x))) #else #define __IPADDR(x) ((u_int32_t)(x)) #endif @@ -244,8 +245,9 @@ struct ip_mreq { #ifdef notyet #define IPCTL_DEFMTU 4 /* default MTU */ #endif -#define IPCTL_SOURCEROUTE 5 /* may perform source routes */ -#define IPCTL_MAXID 6 +#define IPCTL_SOURCEROUTE 5 /* may perform source routes */ +#define IPCTL_DIRECTEDBCAST 6 /* default broadcast behavior */ +#define IPCTL_MAXID 7 #define IPCTL_NAMES { \ { 0, 0 }, \ @@ -254,6 +256,7 @@ struct ip_mreq { { "ttl", CTLTYPE_INT }, \ { "mtu", CTLTYPE_INT }, \ { "sourceroute", CTLTYPE_INT }, \ + { "directed-broadcast", CTLTYPE_INT }, \ } |