Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2005 10:01:05 -0700
From:      Bakul Shah <bakul@BitBlocks.com>
To:        rashmi ns <nsrashmi@gmail.com>
Cc:        freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, bugi@lists.redbrick.dcu.ie
Subject:   Re: help regarding : To recieve and tranmit packet th' an interface
Message-ID:  <200510181701.j9IH151N023966@gate.bitblocks.com>
In-Reply-To: Your message of "Tue, 18 Oct 2005 19:01:21 %2B0530." <9f9993160510180631n147bf7catfe693452f89ebb06@mail.gmail.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> we are writing a driver for HDLC-Controller We have coded upto some extent
> and actully we are able to transmit and recieve a char buff in loopback
> (from inside a driver).
>
> But we want to tranmit/Rx a real packet in (mbuf structure) and test our
> code .As it is a HDLC controller does'nt have std MAC ADDRRSS . How can i
> actually achieve a packet transmition and reception .Are there some drivers
> which does the same

Look at /sys/net/if_spppsubr.c or /sys/netgraph/ng_sppp.c.
One other option is to let your driver present a simple
serial IO interface and implement higher level logic in a
user level daemon that uses a tun device to plug into the
network layer (like /usr/sbin/ppp).  Also be, sure to read
RFC1661!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510181701.j9IH151N023966>