diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-10-30 00:27:27 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-10-30 00:27:27 -0700 |
commit | 0d2f180dd0f933ab651058d5dc691bcd4f7f1c28 (patch) | |
tree | 4292bfcad79e67a0a4386dcd62058fb18caef660 /sysdeps/gnu | |
parent | 675a462ba31fe48fd8513c186287b8fa5d26f655 (diff) | |
download | glibc-0d2f180dd0f933ab651058d5dc691bcd4f7f1c28.zip glibc-0d2f180dd0f933ab651058d5dc691bcd4f7f1c28.tar.gz glibc-0d2f180dd0f933ab651058d5dc691bcd4f7f1c28.tar.bz2 |
Add a few defines to <netinet/udp.h>.
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r-- | sysdeps/gnu/netinet/udp.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sysdeps/gnu/netinet/udp.h b/sysdeps/gnu/netinet/udp.h index 45b69f7..ae1beb9 100644 --- a/sysdeps/gnu/netinet/udp.h +++ b/sysdeps/gnu/netinet/udp.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 93, 95, 96, 97, 2004 Free Software Foundation, Inc. +/* Copyright (C) 1991-1993,1995-1997,2004,2009 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -74,6 +74,16 @@ struct udphdr }; #endif +/* UDP socket options */ +#define UDP_CORK 1 /* Never send partially complete segments. */ +#define UDP_ENCAP 100 /* Set the socket to accept + encapsulated packets. */ + +/* UDP encapsulation types */ +#define UDP_ENCAP_ESPINUDP_NON_IKE 1 /* draft-ietf-ipsec-nat-t-ike-00/01 */ +#define UDP_ENCAP_ESPINUDP 2 /* draft-ietf-ipsec-udp-encaps-06 */ +#define UDP_ENCAP_L2TPINUDP 3 /* rfc2661 */ + #define SOL_UDP 17 /* sockopt level for UDP */ #endif /* netinet/udp.h */ |