Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
the packets are going from computer to computer and also from the board to the computer ... but vice versa is not happening.. the received length on the board is coming 0 ..
we are not able to figure out why our codes are giving us problem ... someone plz help us !!
Some code I've used has a note that the SOCK_RAW parameter was not working for me (and I never studied it to find out why), but the working code uses 'AF_INET, SOCK_PACKET' as the first two args to the socket() function. It may or may not be relevant, but this code uses a main loop that calls select() to detect incoming traffic (various sockets), and then uses read() to fetch the data.
Nothing I see in your code jumps out at me (but it would have made it a lot easier to read if it had been posted in [CODE] tags).
Is there any other network code in your board that is fully functional?
There is no other network code on the board . I think the problem is at a much lower level than the application code. Because the code or even tcpdump does not even show the incoming ping packets. It just prints all the outgoing ping packets. Is there any problem with linux 2.4 that we are using. And can you help as to how should we go about it.
There is no other network code on the board .
You did say that you could send from the board to a computer, and that ping works at some level. Ergo, you've got networking. What is the output of /sbin/ifconfig? What is the output of netstat -i?