diff --git a/tools/cooja/apps/native_gateway/java/se/sics/cooja/plugins/NativeIPGateway.java b/tools/cooja/apps/native_gateway/java/se/sics/cooja/plugins/NativeIPGateway.java index af1d2985e..53810a35a 100644 --- a/tools/cooja/apps/native_gateway/java/se/sics/cooja/plugins/NativeIPGateway.java +++ b/tools/cooja/apps/native_gateway/java/se/sics/cooja/plugins/NativeIPGateway.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: NativeIPGateway.java,v 1.3 2008/12/17 12:15:43 fros4943 Exp $ + * $Id: NativeIPGateway.java,v 1.4 2009/04/23 08:59:22 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -70,6 +70,7 @@ import se.sics.cooja.Plugin; import se.sics.cooja.PluginType; import se.sics.cooja.Simulation; import se.sics.cooja.interfaces.SerialPort; +import se.sics.cooja.util.StringUtils; @ClassDescription("Open Native IP Gateway") @PluginType(PluginType.MOTE_PLUGIN) @@ -736,12 +737,11 @@ public class NativeIPGateway implements Plugin { /* Sanity check outgoing data */ if (packetData.length < IP_HEADER_LEN) { - /*logger.warn("Ignoring small packet: " + packetData.length);*/ + /*logger.warn("Ignoring small packet:\n" + StringUtils.hexDump(packetData));*/ return; } if (packetData[0] != 0x45) { - /*logger.warn("Ignoring bad header:" + - " 0x" + Integer.toHexString(packetData[0]&0xFF));*/ + /*logger.warn("Ignoring bad header:\n" + StringUtils.hexDump(packetData));*/ return; }