Package com.silabs.na.pcap
Class InterfaceDescriptionBlock
- java.lang.Object
-
- com.silabs.na.pcap.InterfaceDescriptionBlock
-
public class InterfaceDescriptionBlock extends java.lang.Object
Section header block starts the pcapng files and contains sections.
-
-
Constructor Summary
Constructors Constructor Description InterfaceDescriptionBlock(LinkType linkType, int snapLen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkType
linkType()
Returns the link type in this block.int
snapLen()
Returns the maximum number of bytes dumped from each packet.java.lang.String
toString()
-
-
-
Constructor Detail
-
InterfaceDescriptionBlock
public InterfaceDescriptionBlock(LinkType linkType, int snapLen)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
linkType
public LinkType linkType()
Returns the link type in this block.- Returns:
- link type
-
snapLen
public int snapLen()
Returns the maximum number of bytes dumped from each packet. The portion of each packet that exceeds this value will not be stored in the file.- Returns:
- max length of packets.
-
-