1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 12:14:26 +01:00

Documented and fixed some bugs in IPv4Address.

This commit is contained in:
Matias Fontanini
2012-08-27 11:57:14 -03:00
parent da8c77c77e
commit e1a84be0cb
6 changed files with 103 additions and 25 deletions

View File

@@ -374,11 +374,11 @@ void Tins::Utils::route_entries(ForwardIterator output) {
for(unsigned i(0); i < 5; ++i)
input >> mask;
from_hex(destination, dummy);
entry.destination = be_to_host(dummy);
entry.destination = IPv4Address(dummy);
from_hex(mask, dummy);
entry.mask = be_to_host(dummy);
entry.mask = IPv4Address(dummy);
from_hex(gw, dummy);
entry.gateway = be_to_host(dummy);
entry.gateway = IPv4Address(dummy);
skip_line(input);
*output = entry;
++output;