projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Change SA_LEN to SALEN, former one is already defined on some platforms.
[tinc]
/
src
/
net.h
diff --git
a/src/net.h
b/src/net.h
index
5f3e2a8
..
ea1657b
100644
(file)
--- a/
src/net.h
+++ b/
src/net.h
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.h,v 1.9.4.4
0 2002/02/20 22:15:32
guus Exp $
+ $Id: net.h,v 1.9.4.4
1 2002/02/20 22:37:38
guus Exp $
*/
#ifndef __TINC_NET_H__
*/
#ifndef __TINC_NET_H__
@@
-65,12
+65,10
@@
typedef union {
struct sockaddr_in6 in6;
} sockaddr_t;
struct sockaddr_in6 in6;
} sockaddr_t;
-#define SA_PORT(s) ((s.sa.sa_family==AF_INET)?s.in.sin_port:(s.sa.sa_family==AF_INET6)?s.in6.sin6_port:0)
-
#ifdef HAVE_LINUX
#ifdef HAVE_LINUX
- #define SA
_
LEN(s) sizeof(sockaddr_t)
+ #define SALEN(s) sizeof(sockaddr_t)
#else
#else
- #define SA
_
LEN(s) (s.sa_len)
+ #define SALEN(s) (s.sa_len)
#endif
typedef struct vpn_packet_t {
#endif
typedef struct vpn_packet_t {