am b8a8d1d6: am c5d6df6f: Merge "Add in_port_t and move it and in_addr_t to the correct header file."
				
					
				
			* commit 'b8a8d1d68e5e7c7df8187f76bbd452a9822fab6d': Add in_port_t and move it and in_addr_t to the correct header file.
This commit is contained in:
		@@ -25,6 +25,7 @@
 | 
			
		||||
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
			
		||||
 * SUCH DAMAGE.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef _ARPA_INET_H_
 | 
			
		||||
#define _ARPA_INET_H_
 | 
			
		||||
 | 
			
		||||
@@ -34,8 +35,6 @@
 | 
			
		||||
 | 
			
		||||
__BEGIN_DECLS
 | 
			
		||||
 | 
			
		||||
typedef uint32_t in_addr_t;
 | 
			
		||||
 | 
			
		||||
in_addr_t inet_addr(const char*);
 | 
			
		||||
int inet_aton(const char*, struct in_addr*);
 | 
			
		||||
in_addr_t inet_lnaof(struct in_addr);
 | 
			
		||||
 
 | 
			
		||||
@@ -25,6 +25,7 @@
 | 
			
		||||
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
			
		||||
 * SUCH DAMAGE.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef _NETINET_IN_H_
 | 
			
		||||
#define _NETINET_IN_H_
 | 
			
		||||
 | 
			
		||||
@@ -43,6 +44,9 @@ __BEGIN_DECLS
 | 
			
		||||
 | 
			
		||||
#define INET_ADDRSTRLEN 16
 | 
			
		||||
 | 
			
		||||
typedef uint16_t in_port_t;
 | 
			
		||||
typedef uint32_t in_addr_t;
 | 
			
		||||
 | 
			
		||||
extern int bindresvport (int sd, struct sockaddr_in *sin);
 | 
			
		||||
 | 
			
		||||
static const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user