473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Processing IPV4 and Ethernet frames

Hello everyone,

My task is to capture a data from the port and to find what type of
data it is. That is wheather it is a IPV4 or a Ethernet frame.
Initially I worked it using Pcap but this one also restricted. The
complete code must be written by me. Would you mind to help me out. I
am waiting for your reply. It's urgent.

Thanks in advance.
--Raghu

Feb 14 '07 #1
7 2522
raghu wrote:
Hello everyone,

My task is to capture a data from the port and to find what type of
data it is. That is wheather it is a IPV4 or a Ethernet frame.
Initially I worked it using Pcap but this one also restricted. The
complete code must be written by me. Would you mind to help me out. I
am waiting for your reply. It's urgent.
You will have to ask on a group dedicated to your target platform.

--
Ian Collins.
Feb 14 '07 #2
On Feb 14, 10:26 am, Ian Collins <ian-n...@hotmail.comwrote:
raghu wrote:
Hello everyone,
My task is to capture a data from the port and to find what type of
data it is. That is wheather it is a IPV4 or a Ethernet frame.
Initially I worked it using Pcap but this one also restricted. The
complete code must be written by me. Would you mind to help me out. I
am waiting for your reply. It's urgent.

You will have to ask on a group dedicated to your target platform.

--
Ian Collins.
Sorry I didn't know to which group I needto post this query. Can you
please give me an idea. But now I need to implement it on the C
language. Thats why I posted it here.
Feb 14 '07 #3
raghu wrote:
On Feb 14, 10:26 am, Ian Collins <ian-n...@hotmail.comwrote:
>>raghu wrote:
>>>Hello everyone,
>>>My task is to capture a data from the port and to find what type of
data it is. That is wheather it is a IPV4 or a Ethernet frame.
Initially I worked it using Pcap but this one also restricted. The
complete code must be written by me. Would you mind to help me out. I
am waiting for your reply. It's urgent.

You will have to ask on a group dedicated to your target platform.
Please trim signatures
>
Sorry I didn't know to which group I needto post this query. Can you
please give me an idea. But now I need to implement it on the C
language. Thats why I posted it here.
Well that depends on your platform, search google groups for a relevant
group. Standard C doesn't have any knowledge of IP packets, you have to
use platform specific libraries to access them.

--
Ian Collins.
Feb 14 '07 #4
raghu wrote:
>You will have to ask on a group dedicated to your target platform.

--
Ian Collins.

Sorry I didn't know to which group I needto post this query. Can you
please give me an idea. But now I need to implement it on the C
language. Thats why I posted it here.
C language aside, what is it with people and absolute lack of resourcefulness?
It's almost as if they cannot figure out even for a second where to begin
looking, and ironically in this cas he's going to be implementing code that
will capture Ethernet frames? Stick to hello world.
Feb 14 '07 #5
Christopher Layne a écrit :
raghu wrote:
>>>You will have to ask on a group dedicated to your target platform.

--
Ian Collins.

Sorry I didn't know to which group I needto post this query. Can you
please give me an idea. But now I need to implement it on the C
language. Thats why I posted it here.


C language aside, what is it with people and absolute lack of resourcefulness?
It's almost as if they cannot figure out even for a second where to begin
looking, and ironically in this cas he's going to be implementing code that
will capture Ethernet frames? Stick to hello world.
Because he is probably working somewhere in a "delocalized"
setting, where you put people without a clue to do what
the systems engineers did before the delocalization.

Consequence: the systems engineer, now without work, has
more time to browse newsgroups and to help the clueless
so that they do his former job. This is called "progess"!

:-)

To raghu

Look raghu, you are in big trouble. You have accepted a
job for which you are absolutely not qualified. The best
way to get out of this is to hide your ignorance as long as you
are able, and use that time to look for a new job...

Of course, looking for the specs of IPV4, writing code to
recognize those specs, looking up the ethernet specs, and writing
code to recognize those specs is not very easy mind you.

jacob
Feb 14 '07 #6
jacob navia wrote:
Because he is probably working somewhere in a "delocalized"
setting, where you put people without a clue to do what
the systems engineers did before the delocalization.

Consequence: the systems engineer, now without work, has
more time to browse newsgroups and to help the clueless
so that they do his former job. This is called "progess"!
Where unfortunately "delocalized" means "offshored" right?

Yeah all in the name of progress to make the fat cats fatter.
Feb 14 '07 #7
"raghu" <ra*********@gmail.comwrote in message
news:11**********************@a34g2000cwb.googlegr oups.com...
Hello everyone,

My task is to capture a data from the port and to find what type of
data it is. That is wheather it is a IPV4 or a Ethernet frame.
Initially I worked it using Pcap but this one also restricted. The
complete code must be written by me. Would you mind to help me out. I
am waiting for your reply. It's urgent.
Google for "Ethereal", download the source, and read it. Then, if you have
questions, find a newsgroup appropriate to your platform; networking is
off-topic here.

S

--
Stephen Sprunk "Those people who think they know everything
CCIE #3723 are a great annoyance to those of us who do."
K5SSS --Isaac Asimov

--
Posted via a free Usenet account from http://www.teranews.com

Feb 14 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chaser | last post by:
Hi folks, Just wondering if anyone knows where I can find modules for NI-488.2 GPIB and for a generic ethercard? Thanks.
6
by: Newbie | last post by:
I am doing some robotics projects but my main area of interest is trying out several algorithms for the processing of the stream of data coming from the video. I am wondering what type of camera...
0
by: David Bear | last post by:
I was hoping to write some network utils and found an ipv4 class written by Keith Dart circa 1999. It doesn't work any longer under python 2.3. I think I found it on starship python and links to...
5
by: Mike Conmackie | last post by:
Hello, I have a situation where I need to group an arbitrary number of like sibling input elements into a compound output element as follows: Input: <feature>
1
by: Tom Brown | last post by:
Hi, I have a windows application, written in delphi, that communicates to our devices using raw ethernet frames. I am trying to port this application to linux using python. However, when I try...
2
by: Valerie Hough | last post by:
My app has so far only encountered IPv4 addresses and I use: Dns.GetHostByName( "someOtherComputer", portNumber ).AddressList. Can someone please point me to an example of how to turn this into...
11
by: gustavo.samour | last post by:
Hi, I am writing a very basic raw ethernet sniffer based on what I found in Andreas Schaufler's raw ethernet article: http://aschauf.landshut.org/fh/linux/udp_vs_raw/ch01s03.html I'm trying...
1
by: kavok | last post by:
I am writing a software that needs to sniff packets in the network (raw ethernet) and also, with another thread send regular UDP packets with the common socket API's. However, when the RAW...
14
by: Simon | last post by:
Hi, is there a straight forward way of converting IPv4 to IPv6? I thought that it was just a matter of converting 32 bits to 128 bits, (by adding 96 leading 0s), but that does not seem right...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.