Hi Rob,

Rob Loefman wrote:
> Hi,
> the code in the attachment freezes up my Sparc T5120 with 
> OpenSolaris/Clearview. I get no errors while compiling nor when running the 
> program, only freeze-up so that HW restart is needed.
>   
Looking at the code I'm not sure why your system freezes when running 
the code you provided. But the packet you are sending is not fully 
composed. Please see below.
> It is probably interesting to know even though I might have some trivial 
> error in the code. BTW if someone finds it, please let me know. It is the 
> first time I've used dlpi_open and I'm unsure about the destination MAC 
> address (should the sap be included , 0x0800?)
>
>   
Since your opening with DLPI_RAW you will have to include(start) with 
the link layer header as well in your 'msgbuf'. For documentation  of  
libdlpi you should be able to man for libdlpi and the list of dlpi_* APIs.
Also the documentation can be found at:  
http://www.opensolaris.org/os/project/clearview/libdlpi/libdlpi-api.txt

Thank,s

-Sagun

Reply via email to