# HG changeset patch # User diego # Date 1181635174 0 # Node ID 06c4f61b5b3351ddc4ea80011e0dcc857b94bbe6 # Parent 8c94645756114364be7d2eb16baaa59bc011fa3d Remove unused static function. diff -r 8c9464575611 -r 06c4f61b5b33 udp.c --- a/udp.c Sun Jun 10 20:35:01 2007 +0000 +++ b/udp.c Tue Jun 12 07:59:34 2007 +0000 @@ -46,14 +46,6 @@ #ifdef CONFIG_IPV6 -static int udp_ipv6_is_multicast_address(const struct sockaddr *addr) { - if (addr->sa_family == AF_INET) - return IN_MULTICAST(ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr)); - if (addr->sa_family == AF_INET6) - return IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6 *)addr)->sin6_addr); - return -1; -} - static int udp_ipv6_set_multicast_ttl(int sockfd, int mcastTTL, struct sockaddr *addr) { if (addr->sa_family == AF_INET) { if (setsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL, &mcastTTL, sizeof(mcastTTL)) < 0) {