🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: be.comp.os.unix
2 messages
2 total messages Started by Bart Van Loon Sat, 03 Mar 2007 21:13
SIOCGIFHWADDR ioctl op FreeBSD
#207
Author: Bart Van Loon
Date: Sat, 03 Mar 2007 21:13
16 lines
1064 bytes
Aloha,

in Linux kunt ge de SIOCGIFHWADDR ioctl gebruiken om het MAC address van
een network interface te komen.

maar hoe doet ge dat in FreeBSD? bestaat daar een ioctl voor?

meerbepaald wil ik htttp://bbbart.ulyssis.be/data/ifmodule.c porten naar
FreeBSD. en dat is mijn laatste struikelblok.

-- 
groetjes,
BBBart

   Hobbes : Shouldn't we read the instructions?  
   Calvin : Do I look like a sissy?
Re: SIOCGIFHWADDR ioctl op FreeBSD
#208
Author: Bart Van Loon
Date: Sun, 04 Mar 2007 09:11
25 lines
1558 bytes
It was Sun, 4 Mar 2007 02:13:20 +0500, when Bart Van Loon wrote:
> Aloha,
>
> in Linux kunt ge de SIOCGIFHWADDR ioctl gebruiken om het MAC address van
> een network interface te komen.
>
> maar hoe doet ge dat in FreeBSD? bestaat daar een ioctl voor?
>
> meerbepaald wil ik htttp://bbbart.ulyssis.be/data/ifmodule.c porten naar
> FreeBSD. en dat is mijn laatste struikelblok.

ok, nevermind. http://www.hungry.com/~alves/local-ip-in-C.html werkte
meteen en is nog crossplatform ook. :-)

-- 
groetjes,
BBBart

   Hobbes : How is the diorama coming along?  
   Calvin : I'm almost finished.
   Hobbes : I don't see the roadrunner. Weren't you going to put one in?  
   Calvin : See the cotton balls I glued down?  
   Hobbes : Yeah?  
   Calvin : The roadrunner just ran out of the scene leaving behind clouds 
            of dust!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads