Lines Matching defs:in

7  * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
32 * Redistribution and use in source and binary forms, with or without
37 * 2. Redistributions in binary form must reproduce the above copyright
38 * notice, this list of conditions and the following disclaimer in the
60 * @(#)in.c 8.4 (Berkeley) 1/9/95
61 * $FreeBSD: src/sys/netinet/in.c,v 1.44.2.5 2001/08/13 16:26:17 ume Exp $
85 #include <netinet/in.h>
177 #define INIFA_ZONE_MAX 64 /* maximum elements in zone */
188 inaddr_local(struct in_addr in)
194 if (ntohl(in.s_addr) == INADDR_LOOPBACK || IN_LINKLOCAL(ntohl(in.s_addr))) {
196 } else if (ntohl(in.s_addr) >= INADDR_UNSPEC_GROUP &&
197 ntohl(in.s_addr) <= INADDR_MAX_LOCAL_GROUP) {
202 sin.sin_addr = in;
213 local = in_localaddr(in);
226 in_localaddr(struct in_addr in)
228 u_int32_t i = ntohl(in.s_addr);
262 * Determine whether an IP address is in a reserved set of addresses
267 in_canforward(struct in_addr in)
269 u_int32_t i = ntohl(in.s_addr);
283 * Trim a mask in a sockaddr
532 /* in case it's NULL, make sure it came from the kernel */
631 * An interface in IPv4 router mode implies that it
634 * being set in that mode.
660 * An interface in IPv4 router mode implies that it
663 * prevent SIOCARPIPLL from being set in that mode.
1368 /* fill in the if_laddrreq structure */
1415 * the interface. When in this mode, IPv4 Link-Local Address support is
1416 * disabled in ARP, and DHCP client support is disabled in IP input; turning
1418 * this mode will result in the removal of IPv4 addresses currently configured
1613 * in the removal of the previous first IPV4 address. KDP needs
1672 * but may may be smaller in the case of supernetting.
1734 * pointer in allhostsinm
1754 in_broadcast(struct in_addr in, struct ifnet *ifp)
1759 if (in.s_addr == INADDR_BROADCAST || in.s_addr == INADDR_ANY)
1763 t = ntohl(in.s_addr);
1773 (in.s_addr == ia->ia_broadaddr.sin_addr.s_addr ||
1774 in.s_addr == ia->ia_netbroadcast.s_addr ||
1881 /* address is in network byte order */
1958 /* Become a regular mutex, just in case */
1985 /* Become a regular mutex, just in case */
2005 panic("%s: ifa %p is already in trash list", __func__, ifa);
2009 /* Become a regular mutex, just in case */