[Qt-interest] QtNetwork and raw ethernet properties
Abdelrazak Younes
younes.abdel at gmail.com
Tue Dec 9 09:35:18 CET 2008
Thiago Macieira wrote:
> On Monday 08 December 2008 17:03:00 Abdel Younes wrote:
>
>> Hello,
>>
>> Google cannot give me an answer about this.
>>
>> I am wondering... is it possible to manipulate raw ethernet parameters
>> thanks to QtNetwork? Things like Mac addresses, vlan and tos bits? And
>> if not, would it be easy to extend the library in order to do this? If
>> not again, would someone recommend a good C++ library able to do this
>> kind of things? I mean, except for libpcap...
>>
>
> Hi Abdel
>
> No, Qt does not offer that functionality.
>
> Qt offers only the ability to query information on the network devices.
> Changing them requires administrator/root privileges, which is why we don't
> provide that.
>
> In any case, changing MAC address is such a rare operation that I doubt we'd
> add it.
>
Well, this kind of things is pretty useful for the telco industry (i.e.
big money), maybe you should reconsider ;-)
> Setting the TOS bits on TCP packets may be a future feature, since it's not a
> privileged operation (setsockopt(2) and IP_TOS). But it's currently not
> supported either.
>
Looking forward to it :-)
If I may add a few feature requests:
- vlan tagging
- checking IP range address (multicast, unicast, IGMP)
Thanks Thiago,
Abdel.
More information about the Qt-interest-old
mailing list