From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 18 17:01:07 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3852A16A41F; Tue, 18 Oct 2005 17:01:07 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id C401243D49; Tue, 18 Oct 2005 17:01:06 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.4/8.13.1) with ESMTP id j9IH151N023966; Tue, 18 Oct 2005 10:01:06 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200510181701.j9IH151N023966@gate.bitblocks.com> To: rashmi ns In-reply-to: Your message of "Tue, 18 Oct 2005 19:01:21 +0530." <9f9993160510180631n147bf7catfe693452f89ebb06@mail.gmail.com> Date: Tue, 18 Oct 2005 10:01:05 -0700 From: Bakul Shah 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 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 17:01:07 -0000 > 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!