X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FMainpage.dox;h=22a0f1b3ae174e6890e3676a3d2ee40a12de6d81;hb=41fe0d795abca302db24e7a955df6ef15ffed722;hp=f5416601f96483ab6af6cdb1fb1d1cd605095219;hpb=32573fc81844083b2aa02d3d224e4cb327de0d9d;p=senf.git diff --git a/Packets/Mainpage.dox b/Packets/Mainpage.dox index f541660..22a0f1b 100644 --- a/Packets/Mainpage.dox +++ b/Packets/Mainpage.dox @@ -57,12 +57,12 @@ udp->source() = 2000u; udp->destination() = 2001u; ip->ttl() = 255u; - ip->source() = senf::INet4Address("192.168.0.1"); // (*) - ip->destination() = senf::INet4Address("192.168.0.2"); // (*) - eth->source() = senf::MACAddress("00:11:22:33:44:55"); - eth->destination() = senf::MACAddress("00:11:22:33:44:66"); + ip->source() = senf::INet4Address::from_string("192.168.0.1"); + ip->destination() = senf::INet4Address::from_string("192.168.0.2"); + eth->source() = senf::MACAddress::from_string("00:11:22:33:44:55"); + eth->destination() = senf::MACAddress::from_string("00:11:22:33:44:66"); - eth.finalize(); // (*) + eth.finalize(); \endcode As seen above, packet fields are accessed using the -> operator whereas other packet