aboutsummaryrefslogtreecommitdiffstats
path: root/capture_wpcap_packet.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-09-20 02:10:48 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-09-20 02:10:48 +0000
commitd0bf73d13d2d9927e6e4a30021f010f061396b12 (patch)
tree61257ba816ab0ec3c856a3d34572b54ff981b379 /capture_wpcap_packet.c
parent81e9a70a96ff082669cee89d47353ff296432a45 (diff)
the buildbot has a problem not knowing sa_family_t, define eth_sa_family_t and use it here (ok, this *is* a dirty hack)
don't know why the last commit compiled on my machine and not on the buildbot. svn path=/trunk/; revision=15887
Diffstat (limited to 'capture_wpcap_packet.c')
-rw-r--r--capture_wpcap_packet.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/capture_wpcap_packet.c b/capture_wpcap_packet.c
index 419109906b..107ad4eca9 100644
--- a/capture_wpcap_packet.c
+++ b/capture_wpcap_packet.c
@@ -46,7 +46,10 @@
#ifndef HAVE_SOCKADDR_STORAGE
/* packet32.h requires sockaddr_storage (usually defined in Platform SDK)
- * copied from RFC2553 (and slightly modified because of datatypes) ... */
+ * copied from RFC2553 (and slightly modified because of datatypes) ...
+ * XXX - defined more than once, move this to a header file */
+typedef unsigned short eth_sa_family_t;
+
/*
* Desired design of maximum size and alignment
*/
@@ -56,12 +59,12 @@
/*
* Definitions used for sockaddr_storage structure paddings design.
*/
-#define ETH_SS_PAD1SIZE (ETH_SS_ALIGNSIZE - sizeof (sa_family_t))
-#define ETH_SS_PAD2SIZE (ETH_SS_MAXSIZE - (sizeof (sa_family_t) + \
+#define ETH_SS_PAD1SIZE (ETH_SS_ALIGNSIZE - sizeof (eth_sa_family_t))
+#define ETH_SS_PAD2SIZE (ETH_SS_MAXSIZE - (sizeof (eth_sa_family_t) + \
ETH_SS_PAD1SIZE + ETH_SS_ALIGNSIZE))
struct sockaddr_storage {
- sa_family_t __ss_family; /* address family */
+ eth_sa_family_t __ss_family; /* address family */
/* Following fields are implementation specific */
char __ss_pad1[ETH_SS_PAD1SIZE];
/* 6 byte pad, this is to make implementation