Re: help regarding : To recieve and tranmit packet th' an interface

2005-10-19 Thread Sergey Babkin
>From: rashmi ns <[EMAIL PROTECTED]>

>Hello List-members,
>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

All the point-to-point interfaces don't have a MAC address.
You don't need it since there is only one place
to which you can write data, into the port. 

Well, the problems start when you want to establish 
X.25 connections. Then you use the X.25 address similarly
to a MAC address. But since usually the X.25 connections
are static, you set up your table of connections
and the translation table between the target IP
address and X.25 address, similar to ARP but static.

-SB
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: help regarding : To recieve and tranmit packet th' an interface

2005-10-18 Thread Bakul Shah
> 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!
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: help regarding : To recieve and tranmit packet th' an interface

2005-10-18 Thread David S. Madole

From: "rashmi ns" <[EMAIL PROTECTED]>


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


I would think any of the existing drivers for WAN-type interfaces would 
be facing all of the the same issues as you might. Take a look at the 
Hardware Notes for whatever release you are using under the Miscellaneous 
Network section:


http://www.freebsd.org/releases/5.4R/hardware-i386.html

David

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: help regarding : To recieve and tranmit packet th' an interface

2005-10-18 Thread Gary Jennejohn

rashmi ns writes:
> Hello List-members,
> 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
> 

I've done this under Linux (ethernet-over-HDLC) and just used a faked
MAC which wouldn't conflict with existing HW.

---
Gary Jennejohn / garyjATjennejohnDOTorg gjATfreebsdDOTorg garyjATdenxDOTde

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


help regarding : To recieve and tranmit packet th' an interface

2005-10-18 Thread rashmi ns
Hello List-members,
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
Thanks and Regards,
Memeber
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"