how to organize data in Data link layer?

There are 7 layers in OSI structure,as I know usually we can only visit application layer,for example in TCP/IP socket use “send()” and “receive()”,but some application we need to oranize data in some layer,such as data link layer,I want to know how to write the code in QNX .

Xuyong,

I’d start by downloading the source code to tcpdump. That program deals with those layers.

You might also look on source force to see about downloading the QNX networking code.

Tim

Yes. On QNX6 I believe that tcpdump uses bpf, so you might like to google for that as well…