mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix overlapping socket level constants.
This commit is contained in:
parent
2bead9df51
commit
9f0e9f2fd4
2 changed files with 12 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013, 2014.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -91,12 +91,13 @@ struct ipv6_mreq
|
|||
unsigned int ipv6mr_interface;
|
||||
};
|
||||
|
||||
#define IPPROTO_IP 0
|
||||
#define IPPROTO_IPV6 1
|
||||
#define IPPROTO_ICMP 2
|
||||
#define IPPROTO_RAW 3
|
||||
#define IPPROTO_TCP 4
|
||||
#define IPPROTO_UDP 5
|
||||
/* #define SOL_SOCKET 0 - in <sys/socket.h> */
|
||||
#define IPPROTO_ICMP 1
|
||||
#define IPPROTO_IP 2
|
||||
#define IPPROTO_IPV6 3
|
||||
#define IPPROTO_RAW 4
|
||||
#define IPPROTO_TCP 5
|
||||
#define IPPROTO_UDP 6
|
||||
|
||||
#define INADDR_ANY ((in_addr_t) 0x00000000)
|
||||
#define INADDR_BROADCAST ((in_addr_t) 0xffffffff)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2013, 2014.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -106,8 +106,10 @@ struct linger
|
|||
int l_linger;
|
||||
};
|
||||
|
||||
#define SOL_SOCKET 1
|
||||
#define SOL_SOCKET 0
|
||||
/* #define IPPROTO_* constants follow numerically. */
|
||||
|
||||
/* Options at the SOL_SOCKET socket level. */
|
||||
#define SO_ACCEPTCONN 1
|
||||
#define SO_BROADCAST 2
|
||||
#define SO_DEBUG 3
|
||||
|
|
Loading…
Reference in a new issue