[Qt-interest] QtNetwork and raw ethernet properties

Thiago Macieira thiago.macieira at trolltech.com
Mon Dec 8 20:11:52 CET 2008


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.

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.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Software Engineer - Nokia, Qt Software
  Qt Software is hiring - ask me
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081208/9648cd8b/attachment.bin 


More information about the Qt-interest-old mailing list