// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static final int OK = 0;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapCanSetRfMon(Pcap pcap) throws PcapCloseException, NativeException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native void PcapClose(Pcap pcap) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapDataLink(Pcap pcap) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native String PcapGetErr(Pcap pcap) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native Pcap PcapOpenDead(int linktype, int snaplen);
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapSetDirection(Pcap pcap, PcapDirection direction) throws PcapCloseException, PlatformNotSupportedException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapSetRfMon(Pcap pcap, int rfmon) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapSnapshot(Pcap pcap) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native String PcapStrError(int error);
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/exception/NativeException.java
// public class NativeException extends RuntimeException {
// 
// 	private static final long serialVersionUID = -3993889826336916332L;
// 
// 	public NativeException() {
// 		this("");
// 	}
// 
// 	public NativeException(final String message) {
// 		this(message, new RuntimeException(message));
// 	}
// 
// 	public NativeException(final Throwable cause) {
// 		this(cause.getMessage(), cause);
// 	}
// 
// 	public NativeException(final String message, final Throwable cause) {
// 		super(message, cause);
// 	}
// 
// }
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/exception/PlatformNotSupportedException.java
// public class PlatformNotSupportedException extends RuntimeException {
// 
//     private static final long serialVersionUID = -5714154798477963289L;
// 
//     public PlatformNotSupportedException() {
//         this("");
//     }
// 
//     public PlatformNotSupportedException(final String message) {
//         this(message, new RuntimeException(message));
//     }
// 
//     public PlatformNotSupportedException(final Throwable cause) {
//         this(cause.getMessage(), cause);
//     }
// 
//     public PlatformNotSupportedException(final String message, final Throwable cause) {
//         super(message, cause);
//     }
// 
// }


import static com.ardikars.jxnet.Jxnet.OK;
import static com.ardikars.jxnet.Jxnet.PcapCanSetRfMon;
import static com.ardikars.jxnet.Jxnet.PcapClose;
import static com.ardikars.jxnet.Jxnet.PcapDataLink;
import static com.ardikars.jxnet.Jxnet.PcapGetErr;
import static com.ardikars.jxnet.Jxnet.PcapOpenDead;
import static com.ardikars.jxnet.Jxnet.PcapSetDirection;
import static com.ardikars.jxnet.Jxnet.PcapSetRfMon;
import static com.ardikars.jxnet.Jxnet.PcapSnapshot;
import static com.ardikars.jxnet.Jxnet.PcapStrError;
import com.ardikars.common.net.Inet4Address;
import com.ardikars.jxnet.exception.NativeException;
import com.ardikars.jxnet.exception.PlatformNotSupportedException;
import java.util.HashMap;
import java.util.logging.Logger;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
    public void Test01_PcapGetErr() {
        System.out.println("Pcap Error: " + PcapGetErr(pcap));
    }

    @Test
    public void Test02_PcapDatalink() {
        System.out.println("Data Link Type: " + PcapDataLink(pcap));
    }

    @Test
    public void Test03_PcapSnaplen() {
        System.out.println("Snapshot: " + PcapSnapshot(pcap));
    }

    @Test
    public void Test04_PcapSetDirection() {
        try {
            try {
                if ((resultCode = PcapSetDirection(pcap, PcapDirection.PCAP_D_IN)) != OK) {
                    logger.warning("PcapSetDirection:PcapSetDirection() " + PcapStrError(resultCode));
                    return;
                }
            } catch (NativeException e) {
                logger.warning(e.getMessage());
            }
        } catch (PlatformNotSupportedException e) {
            logger.warning(e.getMessage());
        }
    }

// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static final int OK = 0;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapCanSetRfMon(Pcap pcap) throws PcapCloseException, NativeException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native void PcapClose(Pcap pcap) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapDataLink(Pcap pcap) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native String PcapGetErr(Pcap pcap) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native Pcap PcapOpenDead(int linktype, int snaplen);
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapSetDirection(Pcap pcap, PcapDirection direction) throws PcapCloseException, PlatformNotSupportedException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapSetRfMon(Pcap pcap, int rfmon) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native int PcapSnapshot(Pcap pcap) throws PcapCloseException;
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/Jxnet.java
// public static native String PcapStrError(int error);
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/exception/NativeException.java
// public class NativeException extends RuntimeException {
// 
// 	private static final long serialVersionUID = -3993889826336916332L;
// 
// 	public NativeException() {
// 		this("");
// 	}
// 
// 	public NativeException(final String message) {
// 		this(message, new RuntimeException(message));
// 	}
// 
// 	public NativeException(final Throwable cause) {
// 		this(cause.getMessage(), cause);
// 	}
// 
// 	public NativeException(final String message, final Throwable cause) {
// 		super(message, cause);
// 	}
// 
// }
// 
// Path: jxnet-core/src/main/java/com/ardikars/jxnet/exception/PlatformNotSupportedException.java
// public class PlatformNotSupportedException extends RuntimeException {
// 
//     private static final long serialVersionUID = -5714154798477963289L;
// 
//     public PlatformNotSupportedException() {
//         this("");
//     }
// 
//     public PlatformNotSupportedException(final String message) {
//         this(message, new RuntimeException(message));
//     }
// 
//     public PlatformNotSupportedException(final Throwable cause) {
//         this(cause.getMessage(), cause);
//     }
// 
//     public PlatformNotSupportedException(final String message, final Throwable cause) {
//         super(message, cause);
//     }
// 
// }


// Path: jxnet-core/src/test/java/com/ardikars/jxnet/FreakTest.java
import static com.ardikars.jxnet.Jxnet.OK;
import static com.ardikars.jxnet.Jxnet.PcapCanSetRfMon;
import static com.ardikars.jxnet.Jxnet.PcapClose;
import static com.ardikars.jxnet.Jxnet.PcapDataLink;
import static com.ardikars.jxnet.Jxnet.PcapGetErr;
import static com.ardikars.jxnet.Jxnet.PcapOpenDead;
import static com.ardikars.jxnet.Jxnet.PcapSetDirection;
import static com.ardikars.jxnet.Jxnet.PcapSetRfMon;
import static com.ardikars.jxnet.Jxnet.PcapSnapshot;
import static com.ardikars.jxnet.Jxnet.PcapStrError;
import com.ardikars.common.net.Inet4Address;
import com.ardikars.jxnet.exception.NativeException;
import com.ardikars.jxnet.exception.PlatformNotSupportedException;
import java.util.HashMap;
import java.util.logging.Logger;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

    public void Test01_PcapGetErr() {
        System.out.println("Pcap Error: " + PcapGetErr(pcap));
    }

    @Test
    public void Test02_PcapDatalink() {
        System.out.println("Data Link Type: " + PcapDataLink(pcap));
    }

    @Test
    public void Test03_PcapSnaplen() {
        System.out.println("Snapshot: " + PcapSnapshot(pcap));
    }

    @Test
    public void Test04_PcapSetDirection() {
        try {
            try {
                if ((resultCode = PcapSetDirection(pcap, PcapDirection.PCAP_D_IN)) != OK) {
                    logger.warning("PcapSetDirection:PcapSetDirection() " + PcapStrError(resultCode));
                    return;
                }
            } catch (NativeException e) {
                logger.warning(e.getMessage());
            }
        } catch (PlatformNotSupportedException e) {
            logger.warning(e.getMessage());
        }
    }

    @Test