aboutsummaryrefslogtreecommitdiff
path: root/src/exit
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-24 14:47:24 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-24 14:47:24 +0000
commitb9a3fbdc52b32aa6bd27941aba76da528f4e0669 (patch)
treeba48df589a0a669fda1720d8ac036e0245c28490 /src/exit
parentcbcd55809c1896352f506ebc7252b1044aba476d (diff)
downloadgnunet-b9a3fbdc52b32aa6bd27941aba76da528f4e0669.tar.gz
gnunet-b9a3fbdc52b32aa6bd27941aba76da528f4e0669.zip
-trying to resolve alignment issue on sparc
Diffstat (limited to 'src/exit')
-rw-r--r--src/exit/gnunet-daemon-exit.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index 07804c592..861742ee8 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -876,7 +876,7 @@ tcp_from_helper (const struct GNUNET_TUN_TcpHeader *tcp,
876 const void *source_ip) 876 const void *source_ip)
877{ 877{
878 struct TunnelState *state; 878 struct TunnelState *state;
879 char buf[pktlen]; 879 char buf[pktlen] GNUNET_ALIGN;
880 struct GNUNET_TUN_TcpHeader *mtcp; 880 struct GNUNET_TUN_TcpHeader *mtcp;
881 struct GNUNET_EXIT_TcpDataMessage *tdm; 881 struct GNUNET_EXIT_TcpDataMessage *tdm;
882 struct TunnelMessageQueue *tnq; 882 struct TunnelMessageQueue *tnq;
@@ -1493,7 +1493,7 @@ send_tcp_packet_via_tun (const struct SocketAddress *destination_address,
1493 return; 1493 return;
1494 } 1494 }
1495 { 1495 {
1496 char buf[len]; 1496 char buf[len] GNUNET_ALIGN;
1497 struct GNUNET_MessageHeader *hdr; 1497 struct GNUNET_MessageHeader *hdr;
1498 struct GNUNET_TUN_Layer2PacketHeader *tun; 1498 struct GNUNET_TUN_Layer2PacketHeader *tun;
1499 1499
@@ -1852,7 +1852,7 @@ send_icmp_packet_via_tun (const struct SocketAddress *destination_address,
1852 return; 1852 return;
1853 } 1853 }
1854 { 1854 {
1855 char buf[len]; 1855 char buf[len] GNUNET_ALIGN;
1856 struct GNUNET_MessageHeader *hdr; 1856 struct GNUNET_MessageHeader *hdr;
1857 struct GNUNET_TUN_Layer2PacketHeader *tun; 1857 struct GNUNET_TUN_Layer2PacketHeader *tun;
1858 1858
@@ -1985,7 +1985,7 @@ receive_icmp_remote (void *cls GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel,
1985 const struct in_addr *v4; 1985 const struct in_addr *v4;
1986 const struct in6_addr *v6; 1986 const struct in6_addr *v6;
1987 const void *payload; 1987 const void *payload;
1988 char buf[sizeof (struct GNUNET_TUN_IPv6Header) + 8]; 1988 char buf[sizeof (struct GNUNET_TUN_IPv6Header) + 8] GNUNET_ALIGN;
1989 int af; 1989 int af;
1990 1990
1991 GNUNET_STATISTICS_update (stats, 1991 GNUNET_STATISTICS_update (stats,
@@ -2227,7 +2227,7 @@ receive_icmp_service (void *cls GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel
2227 const struct GNUNET_EXIT_IcmpServiceMessage *msg; 2227 const struct GNUNET_EXIT_IcmpServiceMessage *msg;
2228 uint16_t pkt_len = ntohs (message->size); 2228 uint16_t pkt_len = ntohs (message->size);
2229 struct GNUNET_TUN_IcmpHeader icmp; 2229 struct GNUNET_TUN_IcmpHeader icmp;
2230 char buf[sizeof (struct GNUNET_TUN_IPv6Header) + 8]; 2230 char buf[sizeof (struct GNUNET_TUN_IPv6Header) + 8] GNUNET_ALIGN;
2231 const void *payload; 2231 const void *payload;
2232 2232
2233 GNUNET_STATISTICS_update (stats, 2233 GNUNET_STATISTICS_update (stats,
@@ -2435,7 +2435,7 @@ send_udp_packet_via_tun (const struct SocketAddress *destination_address,
2435 return; 2435 return;
2436 } 2436 }
2437 { 2437 {
2438 char buf[len]; 2438 char buf[len] GNUNET_ALIGN;
2439 struct GNUNET_MessageHeader *hdr; 2439 struct GNUNET_MessageHeader *hdr;
2440 struct GNUNET_TUN_Layer2PacketHeader *tun; 2440 struct GNUNET_TUN_Layer2PacketHeader *tun;
2441 2441