aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-helper-transport-wlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-helper-transport-wlan.c')
-rw-r--r--src/transport/gnunet-helper-transport-wlan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/gnunet-helper-transport-wlan.c b/src/transport/gnunet-helper-transport-wlan.c
index 03862cc1c..ebb4ac10f 100644
--- a/src/transport/gnunet-helper-transport-wlan.c
+++ b/src/transport/gnunet-helper-transport-wlan.c
@@ -1497,8 +1497,9 @@ stdin_send_hw (void *cls, const struct GNUNET_MessageHeader *hdr)
1497 rtheader.header.it_len = GNUNET_htole16 (sizeof (rtheader)); 1497 rtheader.header.it_len = GNUNET_htole16 (sizeof (rtheader));
1498 rtheader.rate = header->rate; 1498 rtheader.rate = header->rate;
1499 memcpy (write_pout.buf, &rtheader, sizeof (rtheader)); 1499 memcpy (write_pout.buf, &rtheader, sizeof (rtheader));
1500 memcpy (&write_pout.buf[sizeof (rtheader)], &header->frame, sendsize);
1500 wlanheader = (struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame *) &write_pout.buf[sizeof (rtheader)]; 1501 wlanheader = (struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame *) &write_pout.buf[sizeof (rtheader)];
1501 memcpy (wlanheader, &header->frame, sendsize); 1502
1502 /* payload contains MAC address, but we don't trust it, so we'll 1503 /* payload contains MAC address, but we don't trust it, so we'll
1503 * overwrite it with OUR MAC address again to prevent mischief */ 1504 * overwrite it with OUR MAC address again to prevent mischief */
1504 mac_set (wlanheader, dev); 1505 mac_set (wlanheader, dev);