summaryrefslogtreecommitdiff
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authorVincent Gross <vgross@cvs.openbsd.org>2016-08-16 22:21:18 +0000
committerVincent Gross <vgross@cvs.openbsd.org>2016-08-16 22:21:18 +0000
commit0f729c97b3da0f305676c911cadffc6bae47a53c (patch)
treeb3a9e8e5f9f5a3fc0087d634c6a0458a3b990370 /sys/netinet/in.h
parent2c9970a56e902c79df924b484deecb11013aa6d5 (diff)
Add IP_SENDSRCADDR cmsg for UDP sockets. As suggested by sthen@,
IP_SENDSRCADDR == IP_RECVDSTADDR. OK sthen@ jca@ bluhm@
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 31b2a26b453..a390574da3a 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.h,v 1.117 2016/06/28 17:18:24 chris Exp $ */
+/* $OpenBSD: in.h,v 1.118 2016/08/16 22:21:17 vgross Exp $ */
/* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */
/*
@@ -307,6 +307,8 @@ struct ip_opts {
#define IP_RECVRTABLE 35 /* bool; receive rdomain w/dgram */
#define IP_IPSECFLOWINFO 36 /* bool; IPsec flow info for dgram */
#define IP_IPDEFTTL 37 /* int; IP TTL system default */
+#define IP_SENDSRCADDR IP_RECVDSTADDR /* struct in_addr; */
+ /* source address to use */
#define IP_RTABLE 0x1021 /* int; routing table, see SO_RTABLE */
#define IP_DIVERTFL 0x1022 /* int; divert direction flag opt */