/*
* Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Sly Technologies, Inc.
*
* This file is part of jNetPcap.
*
* jNetPcap is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.jnetpcap.protocol;
import org.jnetpcap.packet.JMemoryPacket;
import org.jnetpcap.packet.JPacket;
import org.jnetpcap.packet.TestUtils;
import org.jnetpcap.packet.VariousInMemoryPackets;
// TODO: Auto-generated Javadoc
/**
* Various DL layer tests.
*
* @author Mark Bednarczyk
* @author Sly Technologies, Inc.
*/
public class TestLan
extends
TestUtils {
/** The Constant SLL. */
public final static String SLL =
"C:\\Documents and Settings\\markbe.DESKTOP-HP.000"
+ "\\My Documents\\Downloads\\CaptureDemo.cap";
/**
* Test sll.
*/
public void testSLL() {
System.out.println(super.getPcapPacket(SLL, 1 - 1));
}
/**
* Test802dot3 trailer.
*/
public void test802dot3Trailer() {
JPacket packet =
new JMemoryPacket(JProtocol.IEEE_802DOT3_ID,
VariousInMemoryPackets.PACKET_2_TRAILER);
// System.out.println(packet.getHeader(new IEEE802dot3()));
System.out.println(packet);
System.out.println(packet.getState().toDebugString());
}
}