Subject: RE: Arp Resolve
To: Nitin P Mahajan <Nitin@soc-soft.com>
From: Seth Kurtzberg <seth@cql.com>
List: tech-net
Date: 03/16/2004 00:06:18
Ethereal has a record/playback capability.  I believe it will inject them
at the driver level.

> Hi!
>
> 	Is there any utility in NetBSD where by I can create and send
> Ethernet packets through interface to test the driver?
>
> Thanks and regards
>
> -nitin
>
> -----Original Message-----
> From: Sean Boudreau [mailto:seanb@qnx.com]
> Sent: Monday, March 15, 2004 3:00 AM
> To: Nitin P Mahajan
> Cc: tech-net@NetBSD.org
> Subject: Re: Arp Resolve
>
>
> Make sure you have ifp->if_ioctl set to a callout in
> your driver which calls ether_ioctl() by default.
> ether_ioctl() sets ifp->if_sadl when handling SIOCSIFADDR.
>
> -seanb
>
> On Sun, Mar 14, 2004 at 10:20:16AM -0500, Nitin P Mahajan wrote:
>> Hi!
>>
>> 	Yes it's an Ethernet interface.I called the functions mentioned
>> by u in the attach function.
>>
>> When I do "ifconfig -a" it lists my interface with all the information
>> along with the Ethernet address and also the flag UP and RUNNING.
>>
>> Regards
>>
>> Nitin
>>
>>
>>
>> -----Original Message-----
>> From: Martin Husemann [mailto:martin@duskware.de]
>> Sent: Sunday, March 14, 2004 8:38 PM
>> To: Nitin P Mahajan
>> Cc: tech-net@NetBSD.org
>> Subject: Re: Arp Resolve
>>
>> On Sun, Mar 14, 2004 at 08:32:50PM +0530, Nitin P Mahajan wrote:
>> > I am able to configure the device, but as I try to do ping through
> it
>> I
>> > get the message "arpresolve: can't allocate llinfo on txeth0 for
>> > 192.168.4.92".
>>
>> Is it an ethernet interface? In that case, you should have called
>>
>>   if_attach(ifp);
>>   ether_ifattach(ifp, sc->sc_enaddr);
>>
>> in your attach function. Does "ifconfig -a" list your interface? Does
> it
>> have a "address: xx:xx:xx:xx:xx:xx" line listing the hardware ethernet
>> address?
>>
>> Martin
>
>
> !DSPAM:4056a64c7191410821087!
>
>
>