getting interface MAC addr from C

2006-08-04 Thread Mario Lobo
Hi; Would anyone have a tip on how to get the MAC from a C program? I tried: struct ifreq ifreq; unsigned char *hw; strcpy(ifreq.ifr_name, rl0); ioctl(fd, SIOCGIFMAC, ifreq); hw = ifreq.ifr_ifru.ifru_data; but i don't know if this is right or, if it is, where to get

Re: absolute vs. relative offsets in disklabel

2006-08-04 Thread Alexander Leidinger
Quoting Oliver Fromme [EMAIL PROTECTED] (Thu, 3 Aug 2006 14:48:24 +0200 (CEST)): But then again, harddisks tend to get bigger, so there is probably not much need for a shrinkfs tool. Sometimes it's not an availability decision... think about EMC, disk pools and changing requirements in an

Re: getting interface MAC addr from C

2006-08-04 Thread Robert Watson
On Fri, 4 Aug 2006, Mario Lobo wrote: Would anyone have a tip on how to get the MAC from a C program? I tried: struct ifreq ifreq; unsigned char *hw; strcpy(ifreq.ifr_name, rl0); ioctl(fd, SIOCGIFMAC, ifreq); hw = ifreq.ifr_ifru.ifru_data; but i don't know if this is

Re: [PATCH] add header pppoe: in ng_pppoe.c printfs

2006-08-04 Thread Gleb Smirnoff
On Thu, Aug 03, 2006 at 03:35:04PM +0100, Joao Barros wrote: J I recently switched ISPs which in turn led me from a cablemodem to an J ADSL modem. J After setting PPPoE up I started noticing this messages in the daily J run outputs that that nice guy Charlie root sends me at 3am: J J Aug 3

RFC 919 compliance (broadcasts to 255.255.255.255)

2006-08-04 Thread Benjamin Lutz
Hello, I've noticed that FreeBSD does not by default comply to RFC 919, Chapter 7 (http://tools.ietf.org/html/rfc919). Specifically, it does not handle IP packets with a destination address of 255.255.255.255 properly. 255.255.255.255 is a limited broadcast address (the term is not mentioned

Re: RFC 919 compliance (broadcasts to 255.255.255.255)

2006-08-04 Thread Andrey V. Elsukov
I found a discussion from 2003 about this, but it seems to have trailed off without coming to a conclusion: http://lists.freebsd.org/pipermail/freebsd-net/2003-July/000921.html I've opened a similar PR http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/99558 -- WBR, Andrey V. Elsukov

Re: [PATCH] add header pppoe: in ng_pppoe.c printfs

2006-08-04 Thread Joao Barros
On 8/4/06, Gleb Smirnoff [EMAIL PROTECTED] wrote: On Thu, Aug 03, 2006 at 03:35:04PM +0100, Joao Barros wrote: J Being this a cryptic message to say the least and to probably save J someone some time when presented with this message I attach a patch J that adds the header pppoe: in every printf

Re: getting interface MAC addr from C

2006-08-04 Thread Michal Mertl
Mario Lobo wrote: Hi; Would anyone have a tip on how to get the MAC from a C program? I tried: struct ifreq ifreq; unsigned char *hw; strcpy(ifreq.ifr_name, rl0); ioctl(fd, SIOCGIFMAC, ifreq); hw = ifreq.ifr_ifru.ifru_data; This is probably very far from

Re: RFC 919 compliance (broadcasts to 255.255.255.255)

2006-08-04 Thread Andre Oppermann
Andrey V. Elsukov wrote: I found a discussion from 2003 about this, but it seems to have trailed off without coming to a conclusion: http://lists.freebsd.org/pipermail/freebsd-net/2003-July/000921.html I've opened a similar PR http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/99558 This PR

Re: RFC 919 compliance (broadcasts to 255.255.255.255)

2006-08-04 Thread Andrey V. Elsukov
This PR is in the works and I have produced a first (non-working unfortunately) patch some time ago. I've just come back from two+half week vacation and have to catch up to things again. It is not forgotten. Ok :) Thanks for your work! -- WBR, Andrey V. Elsukov

Re: [PATCH] add header pppoe: in ng_pppoe.c printfs

2006-08-04 Thread Gleb Smirnoff
On Fri, Aug 04, 2006 at 04:48:49PM +0100, Joao Barros wrote: J On 8/4/06, Gleb Smirnoff [EMAIL PROTECTED] wrote: J On Thu, Aug 03, 2006 at 03:35:04PM +0100, Joao Barros wrote: J J Being this a cryptic message to say the least and to probably save J J someone some time when presented with this

Re: [PATCH] add header pppoe: in ng_pppoe.c printfs

2006-08-04 Thread Julian Elischer
Gleb Smirnoff wrote: On Thu, Aug 03, 2006 at 03:35:04PM +0100, Joao Barros wrote: J I recently switched ISPs which in turn led me from a cablemodem to an J ADSL modem. J After setting PPPoE up I started noticing this messages in the daily J run outputs that that nice guy Charlie root sends me

linux ioremap equivalent on freebsd

2006-08-04 Thread Niki Denev
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm in the middle of a struggle to port the linux nozomi(Option GloberTrotter 3G+ HSDPA cardbus adapter) driver to freebsd. And given the fact that i have very little previous kernel coding experience i can't find what i can use in freebsd as

Re: [PATCH] add header pppoe: in ng_pppoe.c printfs

2006-08-04 Thread Joao Barros
On 8/4/06, Gleb Smirnoff [EMAIL PROTECTED] wrote: On Fri, Aug 04, 2006 at 04:48:49PM +0100, Joao Barros wrote: J On 8/4/06, Gleb Smirnoff [EMAIL PROTECTED] wrote: J On Thu, Aug 03, 2006 at 03:35:04PM +0100, Joao Barros wrote: J J Being this a cryptic message to say the least and to probably save

Re: RFC 919 compliance (broadcasts to 255.255.255.255)

2006-08-04 Thread Mohacsi Janos
On Fri, 4 Aug 2006, Benjamin Lutz wrote: Hello, I've noticed that FreeBSD does not by default comply to RFC 919, Chapter 7 (http://tools.ietf.org/html/rfc919). Specifically, it does not handle IP packets with a destination address of 255.255.255.255 properly. 255.255.255.255 is a limited