[Prev][Next][Index][Thread]

Re: 2 Networking questions



> My other question is does the OSkit have any ethernet multicasting
> support?

No.  The device drivers do not currently export any mechanism for
adding/removing multicast addresses, which will prevent receiving
multicast packets, or anyone elses packets, for most network interfaces.

A `quick hack' approximation can be made by changing this file:
oskit/linux/src/drivers/net/net_init.c

Change this line:
	dev->flags              = IFF_BROADCAST|IFF_MULTICAST;
to:
	dev->flags              = IFF_BROADCAST|IFF_MULTICAST|IFF_PROMISC;
or
	dev->flags              = IFF_BROADCAST|IFF_MULTICAST|IFF_ALLMULTI;

You can, of course, send any packet contents you wish by calling
`push' on the driver's netio COM object.

Kevin Van Maren
University of Utah, CSL