aboutsummaryrefslogtreecommitdiffstats
path: root/package/ead/src/ead.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-01-06 14:08:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-01-06 14:08:07 +0000
commit6a997e1e2f3ca07eeec9143ca2811150213c52c2 (patch)
tree4b636a11df7ac12fdd99ab45cf950d1171e785b9 /package/ead/src/ead.c
parent6a8092ea2178ba80740a2e96c0532c6489f305e0 (diff)
downloadupstream-6a997e1e2f3ca07eeec9143ca2811150213c52c2.tar.gz
upstream-6a997e1e2f3ca07eeec9143ca2811150213c52c2.tar.bz2
upstream-6a997e1e2f3ca07eeec9143ca2811150213c52c2.zip
ead: allow the client to override the source ip of the server, so that it can work with route filtering properly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13883 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ead/src/ead.c')
-rw-r--r--package/ead/src/ead.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/ead/src/ead.c b/package/ead/src/ead.c
index b6a9310f0f..91f6fbaf70 100644
--- a/package/ead/src/ead.c
+++ b/package/ead/src/ead.c
@@ -250,7 +250,7 @@ ead_send_packet_clone(struct ead_packet *pkt)
len = sizeof(struct ead_packet) - sizeof(struct ether_header) + ntohl(pktbuf->msg.len);
pktbuf->len[0] = len >> 8;
pktbuf->len[1] = len & 0xff;
- memcpy(pktbuf->srcipaddr, pkt->destipaddr, 4);
+ memcpy(pktbuf->srcipaddr, &pkt->msg.ip, 4);
memcpy(pktbuf->destipaddr, pkt->srcipaddr, 4);
/* ip checksum */