Subject: Mofiying Kernel
To: None <tech-kern@netbsd.org>
From: Rajnish Madan <rajnishm@delhi.tcs.co.in>
List: tech-kern
Date: 12/15/2000 16:09:56
This is a multi-part message in MIME format.

------=_NextPart_000_0045_01C066B1.7771DFD0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset="iso-8859-1"

Hi,

I am absolutely new to Kernel programming...:-(((
I want to modify the Kernel of NetBSD1.4.1, especially the =
"in_arpinput()".

I will be setting the Ethernet Card to promiscuous mode and listen on =
for=20
some MAC addresses, which we call V-MAC addresses. Actually we map each
V-MAC with an IP Addr. For the ARP request for a particular IP Addr(we =
are intersted in)
I need to send back the V-MAC rather than the physical MAC Address.

As i dig into the kernel code, i figured out that the some modifications =
need
to be made in "in_arpinput" function and corresponding header file, may =
be
sockaddr_dl, to support different V-MAC addresses.

Is my understanding correct? , if its correct than other doubts are =
scratching
my brain. How to use ioctl to modify the Data Structure. Is there some =
implications for this...

Pls suggest/guide in this regard

thanks in advance
Rajnish






------=_NextPart_000_0045_01C066B1.7771DFD0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D1>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D1><FONT face=3DArial size=3D1>I am =
absolutely new to=20
Kernel programming...:-(((</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D1>I want to modify the Kernel of =
NetBSD1.4.1,=20
especially the "in_arpinput()".</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D1>I&nbsp;will be&nbsp;setting =
the&nbsp;Ethernet=20
Card&nbsp;to promiscuous mode and listen on for </FONT></DIV>
<DIV><FONT face=3DArial size=3D1>some MAC addresses, which we call V-MAC =
addresses.=20
Actually we map each</FONT></DIV>
<DIV><FONT face=3DArial size=3D1>V-MAC with an IP Addr. For the ARP =
request for a=20
particular IP Addr(we are intersted in)</FONT></DIV>
<DIV><FONT face=3DArial size=3D1>I need to send back the V-MAC rather =
than the=20
physical MAC Address.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D1>As i dig into the kernel code, i =
figured out that=20
the some modifications need</FONT></DIV>
<DIV><FONT face=3DArial size=3D1>to be made in "in_arpinput" function =
and=20
corresponding header file, may be</FONT></DIV>
<DIV><FONT face=3DArial size=3D1>sockaddr_dl, to support different V-MAC =

addresses.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D1>Is my understanding&nbsp;correct? , if =
its correct=20
than other doubts are scratching</FONT></DIV>
<DIV><FONT face=3DArial size=3D1>my brain. How to use ioctl to modify =
the Data=20
Structure. Is there some implications for this...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D1>Pls suggest/guide in this =
regard</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D1>thanks in advance</FONT></DIV>
<DIV><FONT face=3DArial size=3D1>Rajnish</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0045_01C066B1.7771DFD0--