[2300] in linux-net channel archive

home help back first fref pref prev next nref lref last post

A couple of questions.

daemon@ATHENA.MIT.EDU (Manuel Rodriguez)
Fri Mar 29 20:08:09 1996

From: "Manuel Rodriguez" <mr@hplb.hpl.hp.com>
Date: 	Fri, 29 Mar 1996 16:49:08 +0000
To: linux-net@vger.rutgers.edu

Hi:

I have a couple of questions and I was wondering if someone could help me.
Here they are:

a) I'm trying to open a socket directly to the ethernet device with a call
like:

socket (AF_INET, SOL_PACKET, htons (ETH_P_ALL));

If I'm reading packets it works perfectly. On the other hand I'm not able to
get packets from there.
Does anyone out there have any information about these sockets?
I'd really apreciate it.

b) If I try to send a broadcast packet (all 1's) to the network, the kernel
looks at the routing table and selects the apropiate ethx card. But my idea
of a broadcast is that a broadcast packet must be sent to ALL the ethernet
(or whatever) devices, but it seems it does not work.

I'd like to know if that is a normal behaviour or, on the other hand,
linux should be able to send broadcast packets to all the devices.

Thanks
--
============================================================================
*******************  Manuel Rodriguez
*******     *******  Hewlett Packard Laboratories, Bristol
*****  /_  __ *****  NTD, Network Technology Department
****  / / /_/  ****  Filton Rd. Stoke Gifford
*****    /    *****  Bristol, BS12 6QZ, UK          Tel: +44 (0)177 9228214
*******     *******                                 Fax: +44 (0)117 9229286
*******************  e-mail: mr@hplb.hpl.hp.com     Int.Ext:         x28214
============================================================================



home help back first fref pref prev next nref lref last post