Class coroner.protocol.ipv6

Internet protocol version 6 packet dissector.

Please note, that extension headers are skipped over automatically, call to ipv6:get_nexthdrtype returns the first non extension header type.

This module is based on code adapted from nmap's nselib. See http://nmap.org/.

Tables

coroner.protocol.ipv6.proto IPv6 protocol types.

Methods

coroner.protocol.ipv6:new (packet) Create a new object.
coroner.protocol.ipv6:parse () Parse the packet data.
coroner.protocol.ipv6:type () Get the module name.
coroner.protocol.ipv6:get_rawpacket () Get raw packet data uncapsulated in the IPv6 packet data.
coroner.protocol.ipv6:set_packet (packet) Change or set new packet data.
coroner.protocol.ipv6:get_version () Get packet's IP address version.
coroner.protocol.ipv6:get_saddr () Get packet's source IP address.
coroner.protocol.ipv6:get_rawsaddr () Get packet's source IP address.
coroner.protocol.ipv6:get_daddr () Get packet's destination IP address.
coroner.protocol.ipv6:get_rawdaddr () Get packet's destination IP address.
coroner.protocol.ipv6:get_traffclass () Get packet's traffic class.
coroner.protocol.ipv6:get_flowlabel () Get packet's flowlabel.
coroner.protocol.ipv6:get_payloadlen () Get length of packet's payload.
coroner.protocol.ipv6:get_nexthdrtype () Get type of packet's next header.
coroner.protocol.ipv6:get_hoplimit () Get packet's hop limit.
coroner.protocol.ipv6:get_error () Get last error message.


Tables

coroner.protocol.ipv6.proto
IPv6 protocol types.

Fields:

  • IPPROTO_HOPOPT IPv6 Hop-by-Hop Option
  • IPPROTO_ICMP Internet Control Message Protocol
  • IPPROTO_IGMP Internet Group Management Protocol
  • IPPROTO_IPIP IP in IP (encapsulation)
  • IPPROTO_TCP Transmission Control Protocol
  • IPPROTO_EGP Exterior Gateway Protocol
  • IPPROTO_UDP User Datagram Protocol
  • IPPROTO_IPV6 IPv6 Encapsulation
  • IPPROTO_IPV6ROUTE Routing Header for IPv6
  • IPPROTO_IPV6FRAG Fragment Header for IPv6
  • IPPROTO_IPV6ICMP ICMP for IPv6
  • IPPROTO_IPV6NONXT No Next Header for IPv6
  • IPPROTO_IPV6DSTOPTS Destination Options for IPv6
  • IPPROTO_IPV6MOBHDR Mobility Extension Header for IPv6

See also:

Methods

coroner.protocol.ipv6:new (packet)
Create a new object.

Parameters:

  • packet string pass packet data as an opaque string

Returns:

    table New ipv6 table.
coroner.protocol.ipv6:parse ()
Parse the packet data.

Returns:

    boolean True on success, false on failure (error message is set).

See also:

coroner.protocol.ipv6:type ()
Get the module name.

Returns:

    string Module name.
coroner.protocol.ipv6:get_rawpacket ()
Get raw packet data uncapsulated in the IPv6 packet data. This method skips all extension headers.

Returns:

    string Raw packet data or an empty string.
coroner.protocol.ipv6:set_packet (packet)
Change or set new packet data.

Parameters:

  • packet string byte string of packet data
coroner.protocol.ipv6:get_version ()
Get packet's IP address version.

Returns:

    integer IP address version.
coroner.protocol.ipv6:get_saddr ()
Get packet's source IP address.

Returns:

    string IP address formatted as XXX.XXX.XXX.XXX string.
coroner.protocol.ipv6:get_rawsaddr ()
Get packet's source IP address.

Returns:

    string Byte string representing an IP address.
coroner.protocol.ipv6:get_daddr ()
Get packet's destination IP address.

Returns:

    string IPv6 address formatted as XXX.XXX.XXX.XXX string.
coroner.protocol.ipv6:get_rawdaddr ()
Get packet's destination IP address.

Returns:

    string Byte string representing an IP address.
coroner.protocol.ipv6:get_traffclass ()
Get packet's traffic class.

Returns:

    integer Traffic class.
coroner.protocol.ipv6:get_flowlabel ()
Get packet's flowlabel.

Returns:

    integer Flowlabel.
coroner.protocol.ipv6:get_payloadlen ()
Get length of packet's payload.

Returns:

    integer Length.
coroner.protocol.ipv6:get_nexthdrtype ()
Get type of packet's next header.

Returns:

    integer Next header type. This field carries the same value as the protocol field in IPv4 packet header.

See also:

coroner.protocol.ipv6:get_hoplimit ()
Get packet's hop limit.

Returns:

    integer Hop limit.
coroner.protocol.ipv6:get_error ()
Get last error message.

Returns:

    string Error message.
generated by LDoc 1.4.3 Last updated 2016-08-15 00:59:34