MCPcopy Create free account
hub / github.com/OpenPrinting/cups / httpAddrAny

Function httpAddrAny

cups/http-addr.c:35–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 */
34
35int /* O - 1 if "any", 0 otherwise */
36httpAddrAny(const http_addr_t *addr) /* I - Address to check */
37{
38 if (!addr)
39 return (0);
40
41#ifdef AF_INET6
42 if (addr->addr.sa_family == AF_INET6 &&
43 IN6_IS_ADDR_UNSPECIFIED(&(addr->ipv6.sin6_addr)))
44 return (1);
45#endif /* AF_INET6 */
46
47 if (addr->addr.sa_family == AF_INET &&
48 ntohl(addr->ipv4.sin_addr.s_addr) == 0x00000000)
49 return (1);
50
51 return (0);
52}
53
54
55/*

Callers 2

cupsdNetIFUpdateFunction · 0.85
cupsdStartListeningFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected