'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class neighbor_advertisement

odtone::net::ip::icmp::neighbor_advertisement

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/net/ip/icmp/icmp.hpp>



class neighbor_advertisement : public odtone::net::ip::icmp::header {
public:
  // construct/copy/destruct
  neighbor_advertisement();

  // public member functions
  void target(const address_v6::bytes_type &);
  bool R() const;
  bool S() const;
  bool O() const;
  const address_v6::bytes_type & target() const;
  void R(bool);
  void S(bool);
  void O(bool);

  // public data members
  static const uint8 type_value;
  static const uint8 code_value;
};

Description

This class represents an ICMP Neighbor Advertisement packet.

neighbor_advertisement public construct/copy/destruct

  1. neighbor_advertisement();

    Construct an empty ICMP Neighbor Advertisement packet.

neighbor_advertisement public member functions

  1. void target(const address_v6::bytes_type & addr);

    Set the Target address field value.

    Parameters:

    addr

    The Target Address field value.

  2. bool R() const;

    Get the Router flag value.

    Returns:

    The Router flag value.

  3. bool S() const;

    Get the Solicited flag value.

    Returns:

    The Solicited flag value.

  4. bool O() const;

    Get the Override flag value.

    Returns:

    The Override flag value.

  5. const address_v6::bytes_type & target() const;

    Get the Target address field value.

    Returns:

    The Target Address field value.

  6. void R(bool val);

    Set the Router flag value.

    Parameters:

    val

    The Router flag value.

  7. void S(bool val);

    Set the Solicited flag value.

    Parameters:

    val

    The Solicited flag value.

  8. void O(bool val);

    Set the Override flag value.

    Parameters:

    val

    The Override flag value.

neighbor_advertisement public public data members

  1. static const uint8 type_value;

    ICMP Neighbor Advertisement type.

  2. static const uint8 code_value;

    ICMP Neighbor Advertisement type.


PrevUpHomeNext