'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class router_advertisement

odtone::net::ip::icmp::router_advertisement

Synopsis

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



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

  // public member functions
  uint8 current_hop_limit() const;
  bool M() const;
  bool O() const;
  uint16 lifetime() const;
  uint32 reachable_time() const;
  uint32 retrans_timer() const;
  void current_hop_limit(uint8);
  void M(bool);
  void O(bool);
  void lifetime(uint16);
  void reachable_time(uint32);
  void retrans_timer(uint32);

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

Description

This class represents an ICMP Router Advertisement packet.

router_advertisement public construct/copy/destruct

  1. router_advertisement();

    Construct an empty ICMP Router Advertisement packet.

router_advertisement public member functions

  1. uint8 current_hop_limit() const;

    Get the Current Hop Limit field value.

    Returns:

    The Current Hop Limit field value.

  2. bool M() const;

    Get the Managed Address Configuration flag value.

    Returns:

    The Managed Address Configuration flag value.

  3. bool O() const;

    Get the Other Configuration flag value.

    Returns:

    The Other Configuration flag value.

  4. uint16 lifetime() const;

    Get the Lifetime field value.

    Returns:

    The Lifetime field value.

  5. uint32 reachable_time() const;

    Get the Reachable Time field value.

    Returns:

    The Reachable Time field value.

  6. uint32 retrans_timer() const;

    Get the Retransmission Timer field value.

    Returns:

    The Retransmission Timer field value.

  7. void current_hop_limit(uint8 val);

    Set the Current Hop Limit field value.

    Parameters:

    val

    The Current Hop Limit field value.

  8. void M(bool val);

    Set the Managed Address Configuration flag value.

    Parameters:

    val

    The Managed Address Configuration flag value.

  9. void O(bool val);

    Set the Other Configuration flag value.

    Parameters:

    val

    The Other Configuration flag value.

  10. void lifetime(uint16 val);

    Set the Lifetime field value.

    Parameters:

    val

    The Lifetime field value.

  11. void reachable_time(uint32 val);

    Set the Reachable Time field value.

    Parameters:

    val

    The Reachable Time field value.

  12. void retrans_timer(uint32 val);

    Set the Retransmission Timer field value.

    Parameters:

    val

    The Retransmission Timer field value.

router_advertisement public public data members

  1. static const uint8 type_value;

    ICMP Router Advertisement type.

  2. static const uint8 code_value;

    ICMP Router Advertisement code.


PrevUpHomeNext