Skip to content

alias UDPOption


(alias) UDPOption = ("dontroute"|"broadcast"|"reuseaddr"|"reuseport"|"ip-multicast-loop"|"ipv6-v6only"|"ip-multicast-if"|"ip-multicast-ttl"|"ip-add-membership"|"ip-drop-membership")
    | "dontroute" -- : Indicates that outgoing messages should bypass the standard routing facilities. Receives a boolean value;
    | "broadcast" -- : Requests permission to send broadcast datagrams on the socket. Receives a boolean value;
    | "reuseaddr" -- : Indicates that the rules used in validating addresses supplied in a bind() call should allow reuse of local addresses. Receives a boolean value;
    | "reuseport" -- : Allows completely duplicate bindings by multiple processes if they all set 'reuseport' before binding the port. Receives a boolean value;
    | "ip-multicast-loop" -- : Specifies whether or not a copy of an outgoing multicast datagram is delivered to the sending host as long as it is a member of the multicast group. Receives a boolean value;
    | "ipv6-v6only" -- : Specifies whether to restrict inet6 sockets to sending and receiving only IPv6 packets. Receive a boolean value;
    | "ip-multicast-if" -- : Sets the interface over which outgoing multicast datagrams are sent. Receives an IP address;
    | "ip-multicast-ttl" -- : Sets the Time To Live in the IP header for outgoing multicast datagrams. Receives a number;
    | "ip-add-membership" -- : Joins the multicast group specified. Receives a table with fields multiaddr and interface, each containing an IP address;
    | "ip-drop-membership" -- : Leaves the multicast group specified. Receives a table with fields multiaddr and interface, each containing an IP address.

The option descriptions come from the official documentation, which come from the man pages.