NgInterface holds all the information of a pcapng interface.
| 143 | |
| 144 | // NgInterface holds all the information of a pcapng interface. |
| 145 | type NgInterface struct { |
| 146 | // Name is the name of the interface. This value might be empty if this option is missing. |
| 147 | Name string |
| 148 | // Comment can be an arbitrary comment. This value might be empty if this option is missing. |
| 149 | Comment string |
| 150 | // Description is a description of the interface. This value might be empty if this option is missing. |
| 151 | Description string |
| 152 | // Filter is the filter used during packet capture. This value might be empty if this option is missing. |
| 153 | Filter string |
| 154 | // OS is the operating system this interface was controlled by. This value might be empty if this option is missing. |
| 155 | OS string |
| 156 | // LinkType is the linktype of the interface. |
| 157 | LinkType layers.LinkType |
| 158 | // TimestampResolution is the timestamp resolution of the packets in the pcapng file belonging to this interface. |
| 159 | TimestampResolution NgResolution |
| 160 | // TimestampResolution is the timestamp offset in seconds of the packets in the pcapng file belonging to this interface. |
| 161 | TimestampOffset uint64 |
| 162 | // SnapLength is the maximum packet length captured by this interface. 0 for unlimited |
| 163 | SnapLength uint32 |
| 164 | // Statistics holds the interface statistics |
| 165 | Statistics NgInterfaceStatistics |
| 166 | |
| 167 | secondMask uint64 |
| 168 | scaleUp uint64 |
| 169 | scaleDown uint64 |
| 170 | } |
| 171 | |
| 172 | // Resolution returns the timestamp resolution of acquired timestamps before scaling to NanosecondTimestampResolution. |
| 173 | func (i NgInterface) Resolution() gopacket.TimestampResolution { |
nothing calls this directly
no outgoing calls
no test coverage detected