mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
6LoWPAN: HC06, copy TCP header as though it were data.
This commit is contained in:
@@ -131,16 +131,6 @@ static uint8_t g_panid[IEEE802154_PANIDSIZE] =
|
||||
0xca, 0xfe
|
||||
};
|
||||
|
||||
static const uint8_t g_src_eaddr[IEEE802154_EADDRSIZE] =
|
||||
{
|
||||
0x0a, 0xfa, 0xde, 0x00, 0xde, 0xad, 0xbe, 0xef
|
||||
};
|
||||
|
||||
static const uint8_t g_src_saddr[IEEE802154_SADDRSIZE] =
|
||||
{
|
||||
0x12, 0x34
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
* Private Function Prototypes
|
||||
****************************************************************************/
|
||||
@@ -311,13 +301,11 @@ static int lo_loopback(FAR struct net_driver_s *dev)
|
||||
ind.dest.mode = IEEE802154_ADDRMODE_SHORT;
|
||||
#endif
|
||||
|
||||
/* Only loopback the local address is the destination and some (arbitrary)
|
||||
* address is the source.
|
||||
*/
|
||||
/* On loopback the local address is both the source and destination. */
|
||||
|
||||
IEEE802154_PANIDCOPY(ind.src.panid, g_panid);
|
||||
IEEE802154_SADDRCOPY(ind.src.saddr, g_src_saddr);
|
||||
IEEE802154_EADDRCOPY(ind.src.eaddr, g_src_eaddr);
|
||||
IEEE802154_SADDRCOPY(ind.src.saddr, g_saddr);
|
||||
IEEE802154_EADDRCOPY(ind.src.eaddr, g_eaddr);
|
||||
|
||||
IEEE802154_PANIDCOPY(ind.dest.panid, g_panid);
|
||||
IEEE802154_SADDRCOPY(ind.dest.saddr, g_saddr);
|
||||
|
||||
Reference in New Issue
Block a user