]> git.pld-linux.org Git - packages/cups.git/blob - cups-freebind.patch
- added tcp_wrappers and lspp bconds (default to off, should be consider libwrap...
[packages/cups.git] / cups-freebind.patch
1 diff -up cups-2.0.2/cups/http-addr.c.freebind cups-2.0.2/cups/http-addr.c
2 --- cups-2.0.2/cups/http-addr.c.freebind        2015-02-10 14:46:33.000000000 +0100
3 +++ cups-2.0.2/cups/http-addr.c 2015-02-10 14:50:35.074759141 +0100
4 @@ -186,6 +186,10 @@ httpAddrListen(http_addr_t *addr,  /* I -
5    val = 1;
6    setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, CUPS_SOCAST &val, sizeof(val));
7  
8 +#ifdef __linux
9 +  setsockopt(fd, IPPROTO_IP, IP_FREEBIND, CUPS_SOCAST &val, sizeof(val));
10 +#endif /* __linux */
11 +
12  #ifdef IPV6_V6ONLY
13    if (addr->addr.sa_family == AF_INET6)
14      setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, CUPS_SOCAST &val, sizeof(val));
15 diff -up cups-2.0.2/scheduler/listen.c.freebind cups-2.0.2/scheduler/listen.c
This page took 0.032146 seconds and 3 git commands to generate.