logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dnsjit.core.object.pcap - Container of a packet found in a PCAP

Authors And Contributors

       Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

       Maintained by DNS-OARC

              https://www.dns-oarc.net/

Bugs

       For issues and feature requests please use:

              https://github.com/DNS-OARC/dnsjit/issues

       For question and help please use:

              admin@dns-oarc.net

dnsjit                                                1.5.0                           dnsjit.core.object.pcap(3)

Description

       Container  of  a  PCAP  packet  which  contains information both from the PCAP itself and the pcap_pkthdr
       object receied for each packet in the PCAP.

   Attributes
       snaplen
              Max length saved portion of each packet.

       linktype
              Data link type for the PCAP.

       ts     Time stamp of this packet.

       caplen Length of portion present.

       len    Length of this packet (off wire).

       bytes  A pointer to the packet.

       is_swapped
              Indicate if the byte order of the PCAP is different then the host.  This is used in, for  example,
              the  Layer filter to correctly parse null objects since they are stored in the capturers host byte
              order.

   FunctionsPcap:type()
              Return the textual type of the object.

       Pcap:prev()
              Return the previous object.

       Pcap:cast()
              Cast the object to the underlining object module and return it.

       Pcap:uncast()
              Cast the object to the generic object module and return it.

       Pcap:copy()
              Make a copy of the object and return it.

       Pcap:free()
              Free the object, should only be used on copies or otherwise allocated.

Name

       dnsjit.core.object.pcap - Container of a packet found in a PCAP

See Also

dnsjit.core.object(3),     dnsjit.input.pcap(3),      dnsjit.input.fpcap(3),      dnsjit.input.mmpcap(3),
       dnsjit.filter.layer(3), dnsjit.output.pcap(3)

See Also