Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, May 2007
Qt Router programming


Message 1 in thread

Hi folks,

I have a Linux-Box configured with two network cards as a simple router. What I want to do is getting access to both network card´s buffers and manipulate them.

I am very experienced with TCP and UDP socket programming with Qt but for this issue I don't know how to approach it since it deals with routing and thhus I i.e. have to deal with the packet headers as well.

Can anyone give a hint how to aim this problem ?

I appreciate any comment.

Thanks in advance

-- A l e x
-- 
 [ signature omitted ] 

Message 2 in thread

Alexander Carôt wrote:
> Hi folks,
>
> I have a Linux-Box configured with two network cards as a simple router. What I want to do is getting access to both network card´s buffers and manipulate them.
>
> I am very experienced with TCP and UDP socket programming with Qt but for this issue I don't know how to approach it since it deals with routing and thhus I i.e. have to deal with the packet headers as well.
>
> Can anyone give a hint how to aim this problem ?
>
>   
You probably want to use raw sockets. I do not see how Qt can help you 
here.  For a minimal tutorial in german see 
http://www.chaostal.de/cgi-bin/parser.cgi?input=article/raw-socket

Best regards,

Andre

--
 [ signature omitted ] 

Message 3 in thread

On Wed, May 23, 2007 17:36, "Alexander Carôt" wrote:
> I have a Linux-Box configured with two network cards as a simple router.
> What I want to do is getting access to both network card´s buffers and
> manipulate them.

What exactly do you want to do? What is the purpose of what you want to
do? I guess you don't want to manipulate "buffers" for the sake of
manipulating them (whatever you meant with "buffers") - right?

If you simply want to redirect packets to different addresses and/or ports
- IPTables can help with that - simply write a Qt-interface for some
iptables commands.


    Konrad

--
 [ signature omitted ] 

Message 4 in thread

Hi,

I was just wondering how to compile Qt quicker for example by just doing the
library and not the demo / sample. Is there a switch to do that ? ( and
cross-plateform please ... )
I didn't found anything in configure tool.

Alexandre


--
 [ signature omitted ] 

Message 5 in thread

On 23.05.07 18:51:27, alexandre jenny wrote:
> I was just wondering how to compile Qt quicker for example by just doing the
> library and not the demo / sample. Is there a switch to do that ? ( and
> cross-plateform please ... )
> I didn't found anything in configure tool.

On unix you can use -nomake examples -nomake demos to not build them. In
general win32 and unix Makefiles have a sub-src and sub-tools target
which builds src and tools respectively.

Andreas

-- 
 [ signature omitted ] 

Message 6 in thread

alexandre jenny wrote:
> Hi,
> 
> I was just wondering how to compile Qt quicker for example by just doing the
> library and not the demo / sample. Is there a switch to do that ? ( and
> cross-plateform please ... )
> I didn't found anything in configure tool.
> 

  ./configure -nomake examples -nomake demos

I don't think this works on Windows though (I haven't checked). In any 
case in all platforms, you should be able to run configure and do a make 
sub-src to just build Qt libs. (configure -fast will help you kill 
configure time)

Girish

--
 [ signature omitted ] 

Message 7 in thread

One 'dirty but crossplatform hack' may be going into "examples"
directory in the source tree and replacing examples.pro by a "dummy"
.pro file containing these two lines:

TEMPLATE      = subdirs
SUBDIRS       =

the same goes for demos.pro in demos subdirectory.
This way compilation of examples and demos will be always skipped :)

Martin Petricek

On 5/23/07, Girish Ramakrishnan <girish@xxxxxxxxxxxxx> wrote:
> alexandre jenny wrote:
> > Hi,
> >
> > I was just wondering how to compile Qt quicker for example by just doing the
> > library and not the demo / sample. Is there a switch to do that ? ( and
> > cross-plateform please ... )
> > I didn't found anything in configure tool.
> >
>
>   ./configure -nomake examples -nomake demos
>
> I don't think this works on Windows though (I haven't checked). In any
> case in all platforms, you should be able to run configure and do a make
> sub-src to just build Qt libs. (configure -fast will help you kill
> configure time)
>
> Girish
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

--
 [ signature omitted ] 

Message 8 in thread

Hi Alex!

You could also write a GUI to firwalls like shorewall 
(http://www.shorewall.net/) for example. So all you would have to do is 
manipulate configuration files.

Bye,
Andy

"Alexander Carôt" <alexander_carot@xxxxxxx> wrote on 23.05.2007 17:36:45:

> Hi folks,
> 
> I have a Linux-Box configured with two network cards as a simple 
> router. What I want to do is getting access to both network card´s 
> buffers and manipulate them.
> 
> I am very experienced with TCP and UDP socket programming with Qt 
> but for this issue I don't know how to approach it since it deals 
> with routing and thhus I i.e. have to deal with the packet headers as 
well.
> 
> Can anyone give a hint how to aim this problem ?
> 
> I appreciate any comment.
> 
> Thanks in advance
> 
> -- A l e x
> -- 
> Dipl.-Ing. Alexander Carôt
> Email : Alexander@xxxxxxxx
> Tel.: +49 (0)177 5719797
> 
> phd-candidate at www.isnm.de
> 
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx 
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>