hello.hxx File Reference

#include <ostream>
#include <list>
#include "alg/mainaddrof.hh"
#include "utl/vtime.hh"
#include "set/neighbors.hh"
#include "hello.hh"

Go to the source code of this file.

Namespaces

namespace  olsr
namespace  olsr::msg

Defines

#define QOLYESTER_DAEMON_MSG_HELLO_HXX   1
#define PROC_XX_SET(Code)

Variables

std::ostream olsr::dump_hello
bool olsr::do_dump_hello
cproxy_t olsr::cproxy
thnset_t olsr::thn_set


Define Documentation

#define PROC_XX_SET ( Code   ) 

Value:

do {                                                                \
        if (Code ## _list.empty())                                        \
          break;                                                          \
                                                                          \
        linksetraw*     lraw = reinterpret_cast<linksetraw*>(d.raw());    \
                                                                          \
        lraw->linkcode = linkcode_t(Code);                                \
        lraw->reserved = 0;                                               \
                                                                          \
        d += sizeof *lraw;                                                \
                                                                          \
        for (linklist_t::iterator i  = Code ## _list.begin();             \
                                  i != Code ## _list.end();               \
             d += ADDRESS_SIZE, ++i) {                                    \
          i->first.dump(d.raw());                                         \
          cproxy.hello_linkset().set_stamp(i->second);                    \
        }                                                                 \
                                                                          \
        lraw->linkmessagesize = htons(d.raw() -                           \
                                      reinterpret_cast<u_int8_t*>(lraw)); \
      } while (0)

#define QOLYESTER_DAEMON_MSG_HELLO_HXX   1


Generated on Mon Sep 10 17:02:13 2007 for Qolyester daemon by  doxygen 1.5.1