Skip to content

Commit

Permalink
Added handling for IP_MULTICAST_TTL and IP_MULTICAST_LOOP options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Małecki authored and rndi committed Nov 14, 2017
1 parent f938db7 commit 9687b3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/stransmit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,8 @@ Iface* CreateConsole() { return new typename Console<Iface>::type (); }
SocketOption udp_options [] {
{ "ipttl", IPPROTO_IP, IP_TTL, SocketOption::INT, SocketOption::PRE },
{ "iptos", IPPROTO_IP, IP_TOS, SocketOption::INT, SocketOption::PRE },
{ "mcttl", IPPROTO_IP, IP_MULTICAST_TTL, SocketOption::INT, SocketOption::PRE },
{ "mcloop", IPPROTO_IP, IP_MULTICAST_LOOP, SocketOption::INT, SocketOption::PRE }
};

class UdpCommon
Expand Down

0 comments on commit 9687b3f

Please sign in to comment.