Uses of Class
com.slytechs.jnet.jnetpcap.NetPcap
Packages that use NetPcap
-
Uses of NetPcap in com.slytechs.jnet.jnetpcap
Methods in com.slytechs.jnet.jnetpcap that return NetPcapModifier and TypeMethodDescriptionstatic NetPcapCreate a live capture handle.static NetPcapNetPcap.create(org.jnetpcap.PcapIf device) Create a live capture handle.<T extends PcapProConfigurator.PostRxProcessor>
NetPcapNetPcap.enableIpf(boolean b) Install factory.<T extends PcapProConfigurator.PostRxProcessor>
NetPcapNetPcap.enableIpfIf(BooleanSupplier b) Enable ipf if.NetPcap.enablePacketFormatter(boolean b) Enable "pretty print" packet formatter.static NetPcapNetPcap.openDead(org.jnetpcap.constant.PcapDlt linktype, int snaplen) Open a fake pcap_t for compiling filters or opening a capture for output.static NetPcapNetPcap.openDeadWithTstampPrecision(org.jnetpcap.constant.PcapDlt linktype, int snaplen, org.jnetpcap.constant.PcapTStampPrecision precision) Open a fake pcap_t for compiling filters or opening a capture for output.static NetPcapOpen a device for capturing.static NetPcapNetPcap.openLive(org.jnetpcap.PcapIf device, int snaplen, boolean promisc, long timeout, TimeUnit unit) Open a device for capturing.static NetPcapNetPcap.openOffline(File file) Open a saved capture file for reading.static NetPcapNetPcap.openOffline(String fname) Open a saved capture file for reading.NetPcap.setBufferSize(long size, com.slytechs.jnet.jnetruntime.util.MemoryUnit unit) Sets the buffer size for a not-yet- activated capture handle.NetPcap.setDescriptorType(com.slytechs.jnet.protocol.core.constants.PacketDescriptorType type) Sets the descriptor type.NetPcap.setFrameNumber(com.slytechs.jnet.protocol.Frame.FrameNumber frameNumberAssigner) Sets the frame number.NetPcap.setFrameStartingNumber(long startingNo) Sets the frame starting number.NetPcap.setPacketFormatter(com.slytechs.jnet.protocol.meta.PacketFormat formatter) Sets the packet formatter.NetPcap.setPortNumber(int portNo) Sets the port number.NetPcap.setTimestampUnit(com.slytechs.jnet.jnetruntime.time.TimestampUnit unit) Sets the timestamp unit which specifies the timestamp used by this pcap handle.final NetPcapNetPcap.setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler exceptionHandler) Sets the uncaught exception handler.final NetPcapNetPcap.setUncaughtExceptionHandler(Consumer<? super Throwable> exceptionHandler) Sets the uncaught exception handler.<T extends PcapProConfigurator<T>>
NetPcapNetPcap.uninstall(PcapProConfigurator<T> processor) Uninstall a specific processor instance (either pre or post), if installed.<T extends PcapProConfigurator<?>>
NetPcapUninstall a specific processor (either pre or post) by its type.NetPcap.uninstAll(boolean preProcessors, boolean postProcessors) Uninstall selectively all pre or post packet processors.NetPcap.uninstallAll()Uninstall all pre and post packet processors.