join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
ndp_test.cpp File Reference
#include <join/condition.hpp>
#include <join/error.hpp>
#include <join/ndp.hpp>
#include <gtest/gtest.h>
#include <system_error>
#include <atomic>
#include <thread>
#include <netinet/ip6.h>
#include <net/ethernet.h>
#include <cstddef>
Include dependency graph for ndp_test.cpp:

Classes

class  Inbox< Message >
 messages received by a listener. More...
 
class  NdpTest
 Class used to test the neighbor discovery protocol API. More...
 
class  NdpLinkTest
 Class used to test the messages only a link peer can forge. More...
 

Functions

 TEST_F (NdpTest, create)
 test the construction of a client and a server.
 
 TEST_F (NdpTest, routerSolicit)
 test the routerSolicit method.
 
 TEST_F (NdpTest, routerSolicitSync)
 test the routerSolicit method waiting for the answer.
 
 TEST_F (NdpTest, routerSolicitFromListener)
 test the routerSolicit method called from a listener.
 
 TEST_F (NdpTest, setRouterAdvertisementListener)
 test the setRouterAdvertisementListener method.
 
 TEST_F (NdpTest, unsetRouterAdvertisementListener)
 test the unsetRouterAdvertisementListener method.
 
 TEST_F (NdpTest, setRouterSolicitationListener)
 test the setRouterSolicitationListener method.
 
 TEST_F (NdpTest, unsetRouterSolicitationListener)
 test the unsetRouterSolicitationListener method.
 
 TEST_F (NdpTest, routerAdvertise)
 test the routerAdvertise method.
 
 TEST_F (NdpTest, jumbo)
 test messages bigger than an ethernet frame.
 
 TEST_F (NdpTest, drop)
 test that the messages the checks reject are dropped.
 
 TEST_F (NdpTest, neighborAdvertise)
 test the neighborAdvertise method.
 
 TEST_F (NdpLinkTest, unspecifiedSource)
 test the solicitations sent from the unspecified address.
 
 TEST_F (NdpLinkTest, neighborSolicit)
 test the neighborSolicit method.
 
 TEST_F (NdpLinkTest, unspecifiedNeighborSource)
 test the neighbor solicitations sent from the unspecified address.
 
 TEST_F (NdpLinkTest, setNeighborSolicitationListener)
 test the setNeighborSolicitationListener method.
 
 TEST_F (NdpLinkTest, unsetNeighborSolicitationListener)
 test the unsetNeighborSolicitationListener method.
 
 TEST_F (NdpLinkTest, setNeighborAdvertisementListener)
 test the setNeighborAdvertisementListener method.
 
 TEST_F (NdpLinkTest, unsetNeighborAdvertisementListener)
 test the unsetNeighborAdvertisementListener method.
 
 TEST_F (NdpLinkTest, neighborAdvertiseReply)
 test the neighborAdvertise method answering a solicitation.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST_F() [1/20]

TEST_F ( NdpLinkTest ,
neighborAdvertiseReply  )

test the neighborAdvertise method answering a solicitation.

◆ TEST_F() [2/20]

TEST_F ( NdpLinkTest ,
neighborSolicit  )

test the neighborSolicit method.

◆ TEST_F() [3/20]

TEST_F ( NdpLinkTest ,
setNeighborAdvertisementListener  )

test the setNeighborAdvertisementListener method.

◆ TEST_F() [4/20]

TEST_F ( NdpLinkTest ,
setNeighborSolicitationListener  )

test the setNeighborSolicitationListener method.

◆ TEST_F() [5/20]

TEST_F ( NdpLinkTest ,
unsetNeighborAdvertisementListener  )

test the unsetNeighborAdvertisementListener method.

◆ TEST_F() [6/20]

TEST_F ( NdpLinkTest ,
unsetNeighborSolicitationListener  )

test the unsetNeighborSolicitationListener method.

◆ TEST_F() [7/20]

TEST_F ( NdpLinkTest ,
unspecifiedNeighborSource  )

test the neighbor solicitations sent from the unspecified address.

◆ TEST_F() [8/20]

TEST_F ( NdpLinkTest ,
unspecifiedSource  )

test the solicitations sent from the unspecified address.

◆ TEST_F() [9/20]

TEST_F ( NdpTest ,
create  )

test the construction of a client and a server.

◆ TEST_F() [10/20]

TEST_F ( NdpTest ,
drop  )

test that the messages the checks reject are dropped.

◆ TEST_F() [11/20]

TEST_F ( NdpTest ,
jumbo  )

test messages bigger than an ethernet frame.

◆ TEST_F() [12/20]

TEST_F ( NdpTest ,
neighborAdvertise  )

test the neighborAdvertise method.

◆ TEST_F() [13/20]

TEST_F ( NdpTest ,
routerAdvertise  )

test the routerAdvertise method.

◆ TEST_F() [14/20]

TEST_F ( NdpTest ,
routerSolicit  )

test the routerSolicit method.

◆ TEST_F() [15/20]

TEST_F ( NdpTest ,
routerSolicitFromListener  )

test the routerSolicit method called from a listener.

◆ TEST_F() [16/20]

TEST_F ( NdpTest ,
routerSolicitSync  )

test the routerSolicit method waiting for the answer.

◆ TEST_F() [17/20]

TEST_F ( NdpTest ,
setRouterAdvertisementListener  )

test the setRouterAdvertisementListener method.

◆ TEST_F() [18/20]

TEST_F ( NdpTest ,
setRouterSolicitationListener  )

test the setRouterSolicitationListener method.

◆ TEST_F() [19/20]

TEST_F ( NdpTest ,
unsetRouterAdvertisementListener  )

test the unsetRouterAdvertisementListener method.

◆ TEST_F() [20/20]

TEST_F ( NdpTest ,
unsetRouterSolicitationListener  )

test the unsetRouterSolicitationListener method.