summaryrefslogtreecommitdiff
path: root/fake-socket.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-05-31 11:20:11 +1000
committerDamien Miller <djm@mindrot.org>2000-05-31 11:20:11 +1000
commit2f6a0ad191af2e0e67c66bdc5dfc84d9a97bf12c (patch)
tree3b25cc3ba9ed2ae288e33ee8dee5042cc4734020 /fake-socket.h
parent03934f2eefc991f2a0be253be8869cf8f39758bc (diff)
- Cleanup of auth.c, login.c and fake-*
- Cleanup of auth-pam.c, save and print "account expired" error messages
Diffstat (limited to 'fake-socket.h')
-rw-r--r--fake-socket.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/fake-socket.h b/fake-socket.h
index e11ad44e0..0e1624d11 100644
--- a/fake-socket.h
+++ b/fake-socket.h
@@ -5,10 +5,10 @@
5#include "sys/types.h" 5#include "sys/types.h"
6 6
7#ifndef HAVE_STRUCT_SOCKADDR_STORAGE 7#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
8#define _SS_MAXSIZE 128 /* Implementation specific max size */ 8# define _SS_MAXSIZE 128 /* Implementation specific max size */
9#define _SS_ALIGNSIZE (sizeof(int)) 9# define _SS_ALIGNSIZE (sizeof(int))
10#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_short)) 10# define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_short))
11#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof(u_short) + \ 11# define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof(u_short) + \
12 _SS_PAD1SIZE + _SS_ALIGNSIZE)) 12 _SS_PAD1SIZE + _SS_ALIGNSIZE))
13 13
14struct sockaddr_storage { 14struct sockaddr_storage {
@@ -20,7 +20,7 @@ struct sockaddr_storage {
20#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */ 20#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
21 21
22#ifndef IN6_IS_ADDR_LOOPBACK 22#ifndef IN6_IS_ADDR_LOOPBACK
23#define IN6_IS_ADDR_LOOPBACK(a) \ 23# define IN6_IS_ADDR_LOOPBACK(a) \
24 (((u_int32_t *) (a))[0] == 0 && ((u_int32_t *) (a))[1] == 0 && \ 24 (((u_int32_t *) (a))[0] == 0 && ((u_int32_t *) (a))[1] == 0 && \
25 ((u_int32_t *) (a))[2] == 0 && ((u_int32_t *) (a))[3] == htonl (1)) 25 ((u_int32_t *) (a))[2] == 0 && ((u_int32_t *) (a))[3] == htonl (1))
26#endif /* !IN6_IS_ADDR_LOOPBACK */ 26#endif /* !IN6_IS_ADDR_LOOPBACK */