if thier anyone who can tell me how to read data from ethernet port using c with linux.
"if there anyone who can tell me how to read data from ethernet port using c with linux."
Yes, there must be a very great number!
And many of them have written books and/or web pages on that very subject - have you tried looking at any of them...?