problem def updated : Ethereal is showing packet but not the recvfrom function?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

barjeshforyou

Thread Starter
Joined
Dec 2, 2007
Messages
7
Hi all,

Through a C program, I am trying to read data(UDP packet) from port number 68 of my Linux machine using the function 'recvfrom' i.e

char data[342];
int sid = socket(AF_INET,SOCK_DGRAM,0);
recvfrom(sid,data,342,0,NULL,NULL);

'ethereal' is showing the incoming packet, but not the function 'recvfrom'.

->dhclient is already running on port number 68.

Updated : for the above code i was getting an error (11,EAGAIN).Even after killing the process 'dhclient' running on port 68, and then running my code, probelm remains same.

Could you please tell me reason for this.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top