summaryrefslogtreecommitdiff
path: root/src/utils/routing_utils.cpp
AgeCommit message (Collapse)Author
2021-01-04Fix infinite loop when querying BSD routing tableNick Hutchinson
Fix `query_route_table()` returning a buffer padded with extra '\0' bytes because it ignored the buffer size returned by `sysctl()`. This caused `route_entries()` / `route6_entries()` to fall into an infinite loop, forever trying to parse a 0-length routing entry.
2018-03-28Add missing operators to address classes (#275)stubbfel
* * add or-operator and a simlple unit test for hw_address, ip_address, ipv6_address * add not-operator and a simlple unit test for hw_address, ip_address, ipv6_address * add greater-then-operator and a simlple unit test for ipv6_address * add new constructor and a simlple unit test for network_interface, which use a ipv6_address to find the nic * add override the function gateway_from_ip for ipv6_address parameter (untested) * change the ipv6_address in NotMaskAdress_Test, so that the expceted addresses are valid for the winsock api * Delete CMakeLists.txt.user * * add <=, >, >= operator for HWAddress with tests * add <=, >, >= operator for IPv4Address with tests * add <=,>= operator for IPv6Address with tests * refactoring the & , |, ~ operator of ipv6_address to "regular" operator
2017-09-21Use absolute include pathsMatias Fontanini
Fixes #250
2017-05-13Use custom exceptions everywhereMatias Fontanini
2017-05-13Remove useless includesMatias Fontanini
2017-05-08Fix more build issues on appveyorMatias Fontanini
2017-04-30Add missing stdexcept include in routing_utils.cppMatias Fontanini
2017-04-30Move Utils::gateway_from_ip into routing utils filesMatias Fontanini
2017-04-30Move routing related functions into their own header fileMatias Fontanini