diff options
author | cjtallman <cjtallman@gmail.com> | 2015-06-11 09:02:20 -0700 |
---|---|---|
committer | cjtallman <cjtallman@gmail.com> | 2015-06-11 09:02:20 -0700 |
commit | 67abaf89eb9f3de8d7e00f310c502fc7534af2b7 (patch) | |
tree | 4c9604ee0ae522abb3714ed6b3770271a575b1a0 /src/udp.c | |
parent | 321c0c9b1f7b6b83cd83b58e7e259f53eca69373 (diff) | |
download | luasocket-67abaf89eb9f3de8d7e00f310c502fc7534af2b7.tar.gz luasocket-67abaf89eb9f3de8d7e00f310c502fc7534af2b7.tar.bz2 luasocket-67abaf89eb9f3de8d7e00f310c502fc7534af2b7.zip |
Added missing options for UDP getoption.
Documentation says "dontroute", "broadcast", "reuseaddr", and
"reuseport" are supported as arguments to getoption, however their
implementations were missing.
Diffstat (limited to 'src/udp.c')
-rw-r--r-- | src/udp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -89,6 +89,10 @@ static t_opt optset[] = { | |||
89 | 89 | ||
90 | /* socket options for getoption */ | 90 | /* socket options for getoption */ |
91 | static t_opt optget[] = { | 91 | static t_opt optget[] = { |
92 | {"dontroute", opt_get_dontroute}, | ||
93 | {"broadcast", opt_get_broadcast}, | ||
94 | {"reuseaddr", opt_get_reuseaddr}, | ||
95 | {"reuseport", opt_get_reuseport}, | ||
92 | {"ip-multicast-if", opt_get_ip_multicast_if}, | 96 | {"ip-multicast-if", opt_get_ip_multicast_if}, |
93 | {"ip-multicast-loop", opt_get_ip_multicast_loop}, | 97 | {"ip-multicast-loop", opt_get_ip_multicast_loop}, |
94 | {"error", opt_get_error}, | 98 | {"error", opt_get_error}, |