]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
make TinyOS 6LOWPAN network ID available in the header
authormmaroti <mmaroti>
Mon, 30 Nov 2009 04:17:04 +0000 (04:17 +0000)
committermmaroti <mmaroti>
Mon, 30 Nov 2009 04:17:04 +0000 (04:17 +0000)
tos/chips/rf2xx/layers/TinyosNetworkLayer.h
tos/chips/rf2xx/layers/TinyosNetworkLayerC.nc

index 11693c7db0482a89ff3078140fc9158ea78043dc..5d29e5ec5e8b52b4e09d8357bfc2cad745be4f29 100644 (file)
 #ifndef __TINYOSNETWORKLAYER_H__
 #define __TINYOSNETWORKLAYER_H__
 
+#ifndef TINYOS_6LOWPAN_NETWORK_ID
+#define TINYOS_6LOWPAN_NETWORK_ID 0x3f
+#endif
+
 typedef nx_struct network_header_t
 {
        nxle_uint8_t network;
index 6757cbf71bfad36167250cedd33123bfd6727ca6..385527db9b17d150524bb05c6dc9ca8e6403239c 100644 (file)
 
 #include <TinyosNetworkLayer.h>
 
-#ifndef TINYOS_6LOWPAN_NETWORK_ID
-#define TINYOS_6LOWPAN_NETWORK_ID 0x3f
-#endif
-
 /*
    If TFRAMES_ENABLED is defined, then only TinyOS frames will be supported
    (with no network byte). If IEEE154FRAMES_ENABLED, then only IEEE 802.15.4