|
|
| version 1.1.1.1, 2012/02/21 17:26:12 | version 1.1.1.2, 2012/10/09 09:22:28 |
|---|---|
| Line 179 getsockopt_ipv6_ifindex (struct msghdr *msgh) | Line 179 getsockopt_ipv6_ifindex (struct msghdr *msgh) |
| return pktinfo->ipi6_ifindex; | return pktinfo->ipi6_ifindex; |
| } | } |
| #endif /* HAVE_IPV6 */ | |
| int | |
| setsockopt_ipv6_tclass(int sock, int tclass) | |
| { | |
| int ret = 0; | |
| #ifdef IPV6_TCLASS /* RFC3542 */ | |
| ret = setsockopt (sock, IPPROTO_IPV6, IPV6_TCLASS, &tclass, sizeof (tclass)); | |
| if (ret < 0) | |
| zlog_warn ("Can't set IPV6_TCLASS option for fd %d to %#x: %s", | |
| sock, tclass, safe_strerror(errno)); | |
| #endif | |
| return ret; | |
| } | |
| #endif /* HAVE_IPV6 */ | |
| /* | /* |
| * Process multicast socket options for IPv4 in an OS-dependent manner. | * Process multicast socket options for IPv4 in an OS-dependent manner. |