socket_mcttl4(3diet)

socket_mcttl43diet

Set multicast ttl

Usage

#include <socket.h>

int socket_mcttl4(int s,char TTL);

Overview

socket_mcttl4 sets the TTL of outgoing multicast packets on the socket s. Each router decrements the packet TTL by one and discards the packet if the TTL reaches zero. Setting the TTL to 1, for example, will limit the packet propagation to the LAN.

If something goes wrong, socket_mcttl4 returns -1, setting errno appropriately.

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.