Searched refs:in_addr_t (Results 1 - 25 of 74) sorted by relevance

123

/macosx-10.9.5/xnu-2422.115.4/bsd/sys/_types/
H A D_in_addr_t.h30 typedef __uint32_t in_addr_t; /* base type for internet address */ typedef
/macosx-10.9.5/Libc-997.90.3/include/arpa/
H A Dinet.h75 in_addr_t inet_addr(const char *);
84 in_addr_t inet_lnaof(struct in_addr);
85 struct in_addr inet_makeaddr(in_addr_t, in_addr_t);
86 in_addr_t inet_netof(struct in_addr);
87 in_addr_t inet_network(const char *);
90 char *inet_neta(in_addr_t, char *, __darwin_size_t);
/macosx-10.9.5/Libc-997.90.3/net/FreeBSD/
H A Dinet_lnaof.c49 in_addr_t
53 in_addr_t i = ntohl(in.s_addr);
H A Dinet_netof.c48 in_addr_t
52 in_addr_t i = ntohl(in.s_addr);
H A Dinet_network.c54 in_addr_t
58 in_addr_t val, base, n;
60 in_addr_t parts[4], *pp = parts;
H A Dinet_makeaddr.c50 in_addr_t net, host;
H A Dinet_neta.c46 * format an in_addr_t network number into presentation format.
56 in_addr_t src;
H A Dinet_addr.c94 in_addr_t /* XXX should be struct in_addr :( */
/macosx-10.9.5/ppp-727.90.1/Helpers/vpnd/
H A Dipsec_utils.h73 in_addr_t local_addr,
74 in_addr_t local_mask,
75 in_addr_t dest_addr,
76 in_addr_t dest_mask,
77 in_addr_t gtwy_addr,
H A Dcf_utils.c215 in_addr_t addr;
233 in_addr_t net;
/macosx-10.9.5/curl-78.94.1/curl/lib/
H A Dhostip.h35 #undef in_addr_t macro
36 #define in_addr_t unsigned long macro
184 #define CURL_INADDR_NONE (in_addr_t) ~0
H A Dconfig-amigaos.h117 #define in_addr_t int macro
H A Dconfig-win32ce.h319 /* Define this if in_addr_t is not an available 'typedefed' type */
320 #define in_addr_t unsigned long macro
H A Dconfig-dos.h147 #define in_addr_t u_long macro
/macosx-10.9.5/ipsec-258.100.1/ipsec-tools/racoon/
H A Disakmp_cfg.h74 in_addr_t network4;
75 in_addr_t netmask4;
76 in_addr_t dns4[MAXNS];
78 in_addr_t nbns4[MAXWINS];
H A Disakmp_cfg.c115 struct isakmp_data *, in_addr_t *);
118 struct isakmp_data *, in_addr_t *, int);
1018 in_addr_t *addr;
1043 in_addr_t *addr;
1557 in_addr_t *addr;
1564 addr = ALIGNED_CAST(in_addr_t *)(attr + 1); // Wcast-align fix (void*) - attr comes from packet data in a vchar_t
1578 in_addr_t *addr;
1589 addr = ALIGNED_CAST(in_addr_t *)(attr + 1); // Wcast-align fix (void*) - attr comes from packet data in a vchar_t
1716 isakmp_cfg_config.network4 = (in_addr_t)0x00000000;
1717 isakmp_cfg_config.netmask4 = (in_addr_t)
[all...]
/macosx-10.9.5/network_cmds-433/rarpd.tproj/
H A Drarpd.c95 in_addr_t ii_ipaddr; /* IP address of this interface */
96 in_addr_t ii_netmask; /* subnet or net mask */
106 int rarp_bootable __P((in_addr_t));
111 void lookup_ipaddr __P((char *, in_addr_t *, in_addr_t *));
114 void rarp_reply __P((struct if_info *, struct ether_header *, in_addr_t));
115 void update_arptab __P((u_char *, in_addr_t));
118 in_addr_t ipaddrtonetmask __P((in_addr_t));
486 in_addr_t add
[all...]
/macosx-10.9.5/xnu-2422.115.4/libkern/net/
H A Dinet_aton.c44 in_addr_t val;
65 val = (in_addr_t)l;
/macosx-10.9.5/bind9-45.100/bind9/contrib/query-loc-0.4.0/
H A Dloc.h59 #define INADDR_NONE (in_addr_t)-1
/macosx-10.9.5/xnu-2422.115.4/bsd/nfs/
H A Dnfsrvcache.h81 in_addr_t had_inetaddr;
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/
H A DSockets.h159 /* $Copyright: * * Copyright 1998-2000 by the Massachusetts Institute of Technology. * * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of M.I.T. not be used in * advertising or publicity pertaining to distribution of the software * without specific, written prior permission. Furthermore if you modify * this software you must label your software as modified software and not * distribute it in such a fashion that it might be confused with the * original MIT software. M.I.T. makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * Individual source code files are copyright MIT, Cygnus Support, * OpenVision, Oracle, Sun Soft, FundsXpress, and others. * * Project Athena, Athena, Athena MUSE, Discuss, Hesiod, Kerberos, Moira, * and Zephyr are trademarks of the Massachusetts Institute of Technology * (MIT). No commercial use of these trademarks may be made without prior * written permission of MIT. * * "Commercial use" means use of a name in a product or other for-profit * manner. It does NOT prevent a commercial firm from referring to the MIT * trademarks in order to convey information (although in doing so, * recognition of their trademark status should be given). * $ */ /* $Header: /Volumes/backup/dsmigrate/Dumps/../CVS/passwordserver_sasl/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/Sockets.h,v 1.4 2005/01/10 19:10:48 snsimon Exp $ */ /* * * Sockets.h -- Main external header file for the sockets library. * */ #include <KerberosSupport/ErrorLib.h> #include <KerberosSupport/Utilities.h> #include <KerberosSupport/SocketErrors.h> #include <unix.h> #include <MacTypes.h> #include <Events.h> #include <OpenTptInternet.h> #ifndef _SOCKETS_ #define _SOCKETS_ #ifdef __cplusplus extern "C" { #endif #if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__) # pragma import on #endif /*******************/ /* API Definitions */ /*******************/ #define FD_SETSIZE 256 /* The maximum # of sockets -- cannot be changed */ /* socket types */ #define SOCK_STREAM 0 /* stream socket -- connection oriented */ #define SOCK_DGRAM 1 /* datagram socket -- connectionless */ #define SOCK_RAW 2 /* raw socket */ #define SOCK_SEQPACKET 3 /* sequenced packet socket */ #define SOCK_RDM 4 /* reliably delivered message socket */ /* address families -- get AF_INET from OpenTptInternet.h */ #define AF_UNSPEC 0 /* Unspecified */ #define AF_UNIX 1 /* Unix internal protocols */ /* protocol families */ #define PF_UNSPEC AF_UNSPEC /* Unspecified */ #define PF_UNIX AF_UNIX /* Unix internal protocols */ #define PF_INET AF_INET /* Internet protocols */ /* IP Address Wildcard */ #define INADDR_ANY kOTAnyInetAddress #define INADDR_NONE 0xffffffff /* recv and send flags */ #define MSG_DONTROUTE 1 #define MSG_DONTWAIT 2 #define MSG_OOB 4 #define MSG_PEEK 8 #define MSG_WAITALL 16 #define NUMBITSPERBYTE 8 /* Number of bits per byte */ /* socket_fnctl() requests */ #define F_GETFL 3 /* Get file flags */ #define F_SETFL 4 /* Set file flags */ /* shutdown() flags */ #define SHUT_RD 0 /* Shutdown read side of the connection */ #define SHUT_WR 1 /* Shutdown write side of the connection */ #define SHUT_RDWR 2 /* Shutdown read and write sides of the connection */ /* IP address sizes */ #define INET_ADDRSTRLEN 16 /* for IPv4 dotted decimal */ #define INET6_ADDRSTRLEN 46 /* for IPv6 dhex string */ #define INADDRSZ 4 /* size of IPv4 addr in bytes */ #define IN6ADDRSZ 16 /* size of IPv6 addr in bytes */ /* host name size */ #define MAXHOSTNAMESIZE kMaxHostNameLen #define MAXHOSTNAMELEN kMaxHostNameLen #ifdef USE_STREAMS /* Constants for poll() */ #define POLLIN 0x001 /* A non-priority message is available */ #define POLLPRI 0x002 /* A high priority message is available */ #define POLLOUT 0x004 /* The stream is writable for non-priority messages */ #define POLLERR 0x008 /* A error message has arrived */ #define POLLHUP 0x010 /* A hangup has occurred */ #define POLLNVAL 0x020 /* This fd is bogus */ #define POLLRDNORM 0x040 /* A non-priority message is available */ #define POLLRDBAND 0x080 /* A priority message (band > 0) message is available */ #define POLLWRNORM 0x100 /* Same as POLLOUT */ #define POLLWRBAND 0x200 /* A priority band exists and is writable */ #define POLLMSG 0x400 /* A signal message has reached the front of the queue */ #endif /* USE_STREAMS */ /**********/ /* Macros */ /**********/ /* network byte order conversion [none since we're already big-endian] */ #define ntohl(x) (x) #define ntohs(x) (x) #define htonl(x) (x) #define htons(x) (x) /* macros for select */ #define FD_SET(fd, fdset) ((fdset)->fds_bits[(fd) / NFDBITS] |= ((unsigned)1 << ((fd) % NFDBITS))) #define FD_CLR(fd, fdset) ((fdset)->fds_bits[(fd) / NFDBITS] &= ~((unsigned)1 << ((fd) % NFDBITS))) #define FD_ISSET(fd, fdset) ((fdset)->fds_bits[(fd) / NFDBITS] & ((unsigned)1 << ((fd) % NFDBITS))) #define FD_ZERO(fdset) memset((char *)(fdset), 0, sizeof(*(fdset))) /****************************/ /* API Structures and Types */ /****************************/ /* An internet address */ typedef UInt32 in_addr_t; /* size of address structures */ typedef UInt32 socklen_t; /* structure used to store addresses */ struct sockaddr { u_short sa_family; char sa_data[14]; }; /* INET protocol structures */ struct in_addr { in_addr_t s_addr; }; /* A TCP address -- the same as a OT InetAddress */ struct sockaddr_in { /* struct InetAddress { */ u_short sin_family; /* OTAddressType fAddressType */ u_short sin_port; /* InetPort fPort */ struct in_addr sin_addr; /* InetHost fHost */ char sin_zero[8]; /* UInt8 fUnused */ }; /* }; */ /* structures for select */ typedef long fd_mask; #define NFDBITS (sizeof(fd_mask) * NUMBITSPERBYTE) /* bits per mask */ typedef struct fd_set { fd_mask fds_bits[(FD_SETSIZE + NFDBITS - 1) / NFDBITS]; } fd_set; /* Structure for non-contiguous data */ struct iovec { struct iovec *next; /* For compatibility with Open Transport */ void *iov_base; /* Starting address of buffer */ size_t iov_len; /* size of buffer */ }; /* For poll() */ struct pollfd { int fd; short events; short revents; }; /***********************/ /* Function Prototypes */ /***********************/ #if !TARGET_RT_MAC_CFM # pragma d0_pointers on #else # define SocketsLibraryIsPresent() ((Ptr) (socket) != (Ptr) (kUnresolvedCFragSymbolAddress)) #endif /* Sockets Control API calls */ OSStatus AbortSocketOperation(int sockFD); OSStatus AbortAllDNSOperations(void); Boolean IsValidSocket(int sockFD); /* Sockets API calls */ int socket(int family, int type, int protocol); int socket_bind(int sockFD, const struct sockaddr *myAddr, int addrLength); int socket_fcntl(int sockFD, int command, int flags); int socket_close(int sockFD); int socket_shutdown(int sockFD, int howTo); int socket_connect(int sockFD, struct sockaddr *servAddr, int addrLength); int socket_select(int maxFDsExamined, fd_set *readFDs, fd_set *writeFDs, fd_set *exceptFDs, struct timeval *timeOut); #ifdef USE_STREAMS int socket_poll (struct pollfd *fds, unsigned int nfds, int timeout); #endif /* USE_STREAMS */ int socket_getpeername(int sockFD, struct sockaddr *peerAddr, int *addrLength); int socket_getsockname(int sockFD, struct sockaddr *localAddr, int *addrLength); int socket_read(int sockFD, void *buffer, UInt32 numBytes); int socket_write(int sockFD, const void *buffer, UInt32 numBytes); int socket_readv(int sockFD, struct iovec *iov, UInt32 iovCount); int socket_writev(int sockFD, struct iovec *iov, UInt32 iovCount); int socket_recv(int sockFD, void *buffer, UInt32 numBytes, int flags); int socket_send(int sockFD, const void *buffer, UInt32 numBytes, int flags); int socket_recvfrom(int sockFD, void *buffer, UInt32 numBytes, int flags, struct sockaddr *fromAddr, socklen_t *addrLength); int socket_sendto(int sockFD, const void *buffer, UInt32 numBytes, int flags, struct sockaddr *toAddr, socklen_t addrLength); /* Utilites API calls */ char *inet_ntoa(struct in_addr addr); int inet_aton(const char *str, struct in_addr *addr); in_addr_t inet_addr(const char *str); int inet_pton(int family, const char *str, void *addr); const ch (…)
1 /* $Copyright: typedef
/macosx-10.9.5/OpenSSH-186/openssh/openbsd-compat/
H A Dinet_aton.c69 in_addr_t
/macosx-10.9.5/bootp-268.1/bootplib/
H A Dutil.h56 INLINE in_addr_t
63 hltoip(in_addr_t l)
/macosx-10.9.5/xnu-2422.115.4/bsd/netinet/
H A Din_var.h240 in_addr_t ims_haddr; /* host byte order */
253 in_addr_t ims_haddr; /* host byte order */
473 extern int inm_record_source(struct in_multi *inm, const in_addr_t);
/macosx-10.9.5/network_cmds-433/alias/
H A Dalias_irc.c128 in_addr_t org_addr; /* Original IP address */
286 "%u ", (in_addr_t)htonl(alias_address.s_addr));

Completed in 146 milliseconds

123