Re: programming on ethernet level

1998-12-16 Thread Hans-Peter Jansen
Bruno Randolf wrote: > > hi there! > > can anybody here tell me how can i send and receive ethernet packets > directly on layer 2 under linux? [snip] > any other suggsetions? > help would be greatly appreciated! > > Br1 This was my problem some time ago, too. As suggested, I started with pcap

programming on ethernet level

1998-12-14 Thread Telematica Grupo X - R.Vargas - E.Mesa
hi there! can anybody here tell me how can i send and receive ethernet packets directly on layer 2 under linux? i need that for the following project: one linux machine, two ethernet nics. we want to some kind of bridging function between the two nics with the additional features of contro

Re: programming on ethernet level

1998-12-13 Thread jamal
Of course you can use socket packet as someone pointed out. The other way is to use libpcap -- if you want portability. I have patches against libpcap for this but have only tested on Linux and someone else has verified that they work on FreeBSD. take a look at: http://www.cyberus.ca/~hadi/pcap

Re: programming on ethernet level

1998-12-12 Thread mpaci
Hi Bruno, there's a packet capture library called libpcap which supportsthe reading of packets of the datalink layer. It is provided in source code at the following URL ftp://ftp.ee.lbl.gov/libpcap.tar.Z. Without too much problem you could also be able to modify it to add the suppor

Re: programming on ethernet level

1998-12-12 Thread mpaci
Hi Bruno, there's a packet capture library called libpcap which supports the reading of packets of the datalink layer. It is provided in source code at the following URL ftp://ftp.ee.lbl.gov/libpcap.tar.Z. Without too much problem you should also be able to modify it to add the su

programming on ethernet level

1998-12-12 Thread Bruno Randolf
hi there! can anybody here tell me how can i send and receive ethernet packets directly on layer 2 under linux? i need that for the following project: one linux machine, two ethernet nics. we want to some kind of bridging function between the two nics with the additional features of controlling

Re: programming on ethernet level

1998-12-12 Thread Mike Wright
> hi there! > > can anybody here tell me how can i send and receive ethernet packets > directly on layer 2 under linux? I'm not an expert on the subject, so i can't say if you are looking at your problem in a sensible way, but i am using the following to open a socket for reading packets from

programming on ethernet level

1998-12-11 Thread Bruno Randolf
hi there! can anybody here tell me how can i send and receive ethernet packets directly on layer 2 under linux? i need that for the following project: one linux machine, two ethernet nics. we want to some kind of bridging function between the two nics with the additional features of controlling