summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-04 14:47:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-04 14:47:11 +0000
commit3fb76805139ef1cc04a8ed234febf335c50f5a02 (patch)
treeb3d82e925ff5c475ec1d53f42478a591399ce559 /cpukit/libnetworking/netinet/tcp_subr.c
parent2002-10-02 Chris Johns <cjohns@cybertec.com.au> (diff)
downloadrtems-3fb76805139ef1cc04a8ed234febf335c50f5a02.tar.bz2
2002-10-04 Jay Monkman <jtm@smoothsmoothie.com>
* netinet/in_cksum.c, netinet/ip_icmp.h, netinet/ip_input.c, netinet/tcp_input.c, netinet/tcp_subr.c, netinet/tcp_var.h, sys/queue.h: Address alignment requirements for the ARM.
Diffstat (limited to 'cpukit/libnetworking/netinet/tcp_subr.c')
-rw-r--r--cpukit/libnetworking/netinet/tcp_subr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/libnetworking/netinet/tcp_subr.c b/cpukit/libnetworking/netinet/tcp_subr.c
index a9cde3fdf0..9e7e57611d 100644
--- a/cpukit/libnetworking/netinet/tcp_subr.c
+++ b/cpukit/libnetworking/netinet/tcp_subr.c
@@ -399,7 +399,11 @@ tcp_close(tp)
t = tp->seg_next;
while (t != (struct tcpiphdr *)tp) {
t = (struct tcpiphdr *)t->ti_next;
+#if (defined(__GNUC__) && defined(__arm__))
+ LD32_UNALGN((struct tcpiphdr *)t->ti_prev,m);
+#else
m = REASS_MBUF((struct tcpiphdr *)t->ti_prev);
+#endif
remque(t->ti_prev);
m_freem(m);
}