INET Framework for OMNeT++/OMNEST
IGMP.cc File Reference
#include "IGMP.h"
#include "IPv4InterfaceData.h"

Go to the source code of this file.

Functions

 Define_Module (IGMP)
std::ostream & operator<< (std::ostream &os, const IGMPInterface &e)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const IGMPInterface e 
)

Vypis struktury IGMPInterface

Definition at line 14 of file IGMP.cc.

{
    os << "Internet address is " << e.ie->ipv4Data()->getIPAddress() << "/" << e.ie->ipv4Data()->getNetmask().getNetmaskLength() << endl;
    os << "IGMP is enabled on interface" << endl;
    os << "Curent IGMP version is 2" << endl;
//     os << "IGMP query interval is " << IGMP::QUERY_INTERVAL << " seconds" << endl;
//     os << "IGMP querier timeout is " << IGMP::OTHER_QUERIER_PRESENT_INTERVAL << " seconds" << endl;
//     os << "IGMP max query response time is " << IGMP::QUERY_RESPONSE_INTERVAL_SEC << " seconds" << endl;
//     os << "Last member query response interval is " << IGMP::QUERY_RESPONSE_INTERVAL_SEC / 1000 << " ms" << endl;
//    os << "IGMP activity: " << e.join << " joins, " << e.leave << " leaves" << endl;
    os << "IGMP querying router is " << e.ipQuerier;
    if (e.querier)
        os << " (this system)";
    os << endl;

    return os;
};