Thank you for your answer, PF_PACKET seems to be exactly what we need. After reading the PF_PACKET manpage I have two questions:
I suppose I would use ETH_P_IRDA as protocol?
That one was not that hard, but what do I do with the addresses? I saw that there is a sockaddr_ll struct, which is a device independent physical layer address... But what should I do with it, since there is nothing to address on this layer? Do I have to specify anywhere "which" interface to use?
I found much information about using PF_PACKET for ethernet sockets, but I couldn't find anything about how to use it with IrDA sockets...

Von: John K. Luebs [mailto:jkluebs@luebsphoto.com]
Gesendet: Do 21.01.2010 00:23
An: Wallner Andreas
Cc: irda-users@lists.sourceforge.net
Betreff: Re: [irda-users] Access to IrDA PHY Level

Check out the PF_PACKET interface documented in the packet(7) man page.
You can open a packet socket with SOCK_RAW and send pretty much
raw frames out an IrDA device from userspace.

You can use the SIOCSBANDWIDTH ioctl on the packet to set the data rate.
You might have to explore the linux/irda.h header directly and
if_irda_req struct for details as I don't believe a lot of this low
level stuff is documented formally.


Wallner Andreas wrote:
> Hi,

> I have to following problem: we buit an IrDA FIR core for a FPGA /
> ASIC, and we want to verify this core against an interface we know is
> standard compliant. Since we don't have a full IrDA Stack available
> ATM, and want to test it layer-by-layer anyway we thought of using one
> of our notebooks IrDA interfaces.

> I have no clue about the IrDA implementation on Linux, that why I
> wanted to ask wheter it is possible to gain access to the IrDA PHY
> level (the level where you would normally begin to write your IrDA
> stack and implement IrLAP?

> Regards,
> Andreas Wallner
> FH JOANNEUM Gesellschaft mbH
> Rechtsform/Legal form: GmbH
> Firmenbuchgericht/Court of registry: Landesgericht für ZRS Graz
> Firmenbuchnummer/Company registration: FN 125888 f
> DVR: 0813559
> UID-Nr.: ATU 42361001
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ------------------------------------------------------------------------
> _______________________________________________
> irda-users mailing list
> irda-users@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/irda-users