Re: Advbase range?

2008-09-19 Thread askthelist
On Fri, Sep 19, 2008 at 1:53 AM, Stuart Henderson <[EMAIL PROTECTED]>wrote:

> On 2008-09-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > 2008/9/18 Cezary Morga <[EMAIL PROTECTED]>
> >
> >> Dnia czwartek, 18 wrze6nia 2008, napisa3e6:
> >> > I understand the concept of an 8 bit integer. What I meant by
> >> > ambiguous is the acceptable ranges that are being used, assuming
> >> > vhid's are an 8-bit integer as well, although thats not explicitly
> >> > stated it sure looks like one, why isnt 0 acceptable?
> >>
> >> The ifconfig(8) manpage states:
> >> vhid n  If the driver is a carp(4) pseudo-device, set the virtual host
> >> ID to n.  Acceptable values are 1 to 255.
> >>
> >> And in the ifconfig.c you have:
> >>  vhid = strtonum(val, 1, 255, &errmsg);
> >>
> >
> > That was a rhetorical question. It makes little difference to me why I
> cant
> > set a vhid to 0. I asked it to make a point about your previous comment
> on
> > ambiguity.
> >
> >>
> >> > Ok then if this is true, then can anyone tell me what else would
> >> > prevent me from assigning 0 to the advbase.
> >>
> >> Common sense? You can set advbase to 0 and ifconfig won't complain about
> >> it, but it seems that somewhere between the lines ifconfig simply
> >> ignores such value and uses default or previously set. I haven't
> >> managed to find what it actually does in such situation, but I'm no C
> >> programmer.
> >>
> >
> > Common sense? Please. There are many examples on these lists of people
> > trying to accomplish crazier things then trying to lower there failover
> > times to something less then 3 seconds. Look I appreciate you attempting
> to
> > help and all, but if your going to be rude about it please dont bother.
>
> Did you see this from when it came up before?
> http://archive.netbsd.se/?ml=openbsd-bugs&a=2007-03&m=3363926
>
> Yah, I came across this and the guy said it worked great for him. Because
of marco's warnings, I was attempting to find a happy medium between the
posters advbase/skew settings and the defaults in a non-production network
when I ran into not being able to set the advbase to 0.

I actually found this little paragraph interesting in the full posting for
another reason given the current events in los angeles and the recent
metrolink train accident although Im sure there is no relation...

"I understand your point, however our setup is in a closed network (for
rail signalling, less than 15 km long). The network is well underused...
we use optical fiber and send only 200 packets per second through the
whole network. The switch over time must be under a second regardless of
the type of faiure. 200ms carp advertising rate works beautifully."


http://archive.netbsd.se/?ml=openbsd-bugs&a=2007-03&t=3355463



Re: Advbase range?

2008-09-19 Thread Stuart Henderson
On 2008-09-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 2008/9/18 Cezary Morga <[EMAIL PROTECTED]>
>
>> Dnia czwartek, 18 wrze6nia 2008, napisa3e6:
>> > I understand the concept of an 8 bit integer. What I meant by
>> > ambiguous is the acceptable ranges that are being used, assuming
>> > vhid's are an 8-bit integer as well, although thats not explicitly
>> > stated it sure looks like one, why isnt 0 acceptable?
>>
>> The ifconfig(8) manpage states:
>> vhid n  If the driver is a carp(4) pseudo-device, set the virtual host
>> ID to n.  Acceptable values are 1 to 255.
>>
>> And in the ifconfig.c you have:
>>  vhid = strtonum(val, 1, 255, &errmsg);
>>
>
> That was a rhetorical question. It makes little difference to me why I cant
> set a vhid to 0. I asked it to make a point about your previous comment on
> ambiguity.
>
>>
>> > Ok then if this is true, then can anyone tell me what else would
>> > prevent me from assigning 0 to the advbase.
>>
>> Common sense? You can set advbase to 0 and ifconfig won't complain about
>> it, but it seems that somewhere between the lines ifconfig simply
>> ignores such value and uses default or previously set. I haven't
>> managed to find what it actually does in such situation, but I'm no C
>> programmer.
>>
>
> Common sense? Please. There are many examples on these lists of people
> trying to accomplish crazier things then trying to lower there failover
> times to something less then 3 seconds. Look I appreciate you attempting to
> help and all, but if your going to be rude about it please dont bother.

Did you see this from when it came up before?
http://archive.netbsd.se/?ml=openbsd-bugs&a=2007-03&m=3363926



Re: Advbase range?

2008-09-18 Thread askthelist
2008/9/18 Cezary Morga <[EMAIL PROTECTED]>

> Dnia czwartek, 18 wrze6nia 2008, napisa3e6:
> > I understand the concept of an 8 bit integer. What I meant by
> > ambiguous is the acceptable ranges that are being used, assuming
> > vhid's are an 8-bit integer as well, although thats not explicitly
> > stated it sure looks like one, why isnt 0 acceptable?
>
> The ifconfig(8) manpage states:
> vhid n  If the driver is a carp(4) pseudo-device, set the virtual host
> ID to n.  Acceptable values are 1 to 255.
>
> And in the ifconfig.c you have:
>  vhid = strtonum(val, 1, 255, &errmsg);
>

That was a rhetorical question. It makes little difference to me why I cant
set a vhid to 0. I asked it to make a point about your previous comment on
ambiguity.

>
> > Ok then if this is true, then can anyone tell me what else would
> > prevent me from assigning 0 to the advbase.
>
> Common sense? You can set advbase to 0 and ifconfig won't complain about
> it, but it seems that somewhere between the lines ifconfig simply
> ignores such value and uses default or previously set. I haven't
> managed to find what it actually does in such situation, but I'm no C
> programmer.
>

Common sense? Please. There are many examples on these lists of people
trying to accomplish crazier things then trying to lower there failover
times to something less then 3 seconds. Look I appreciate you attempting to
help and all, but if your going to be rude about it please dont bother.


> --
> Cezary Morga
> "Television enables you to be entertained in your home by people you
> wouldn't have in your home." (David Frost)


or wouldnt have you in theirs...



Re: Advbase range?

2008-09-18 Thread Cezary Morga
Dnia czwartek, 18 wrze6nia 2008, napisa3e6:
> I understand the concept of an 8 bit integer. What I meant by
> ambiguous is the acceptable ranges that are being used, assuming
> vhid's are an 8-bit integer as well, although thats not explicitly
> stated it sure looks like one, why isnt 0 acceptable?

The ifconfig(8) manpage states:
vhid n  If the driver is a carp(4) pseudo-device, set the virtual host
ID to n.  Acceptable values are 1 to 255.

And in the ifconfig.c you have:
 vhid = strtonum(val, 1, 255, &errmsg);

> Ok then if this is true, then can anyone tell me what else would
> prevent me from assigning 0 to the advbase.

Common sense? You can set advbase to 0 and ifconfig won't complain about
it, but it seems that somewhere between the lines ifconfig simply
ignores such value and uses default or previously set. I haven't
managed to find what it actually does in such situation, but I'm no C
programmer.

--
Cezary Morga
"Television enables you to be entertained in your home by people you
wouldn't have in your home." (David Frost)



Re: Advbase range?

2008-09-18 Thread askthelist
2008/9/18 Cezary Morga <[EMAIL PROTECTED]>

> Dnia czwartek, 18 wrze6nia 2008 04:41, napisa3e6:
> > what is the range of the advbase?
> >
> > advskew is 0-255 but vhid's are 1-255 and the man page just states
> advbase
> > is an 8-bit number with a default of 1, so its a bit ambiguous.
>
> There's nothing ambiguous in 8-bit number, and as such the range for
> advbase
> is 0-255.
>

I understand the concept of an 8 bit integer. What I meant by ambiguous is
the acceptable ranges that are being used, assuming vhid's are an 8-bit
integer as well, although thats not explicitly stated it sure looks like
one, why isnt 0 acceptable?

>
> > I havent been able to set advbase to 0 so I am assuming its 1-255,
> however
> > I have seen posts of people configuring the advbase to 0. Is this
> > decapracated now?
>
> I'm not a programmer, but as far as I can read C, there's no restrain in
> 4.3
> code on setting advbase to 0.


Ok then if this is true, then can anyone tell me what else would prevent me
from assigning 0 to the advbase. Im not using ifstated, or anything else
that i know that may manipulate the carp interfaces. I've attempted to set
the advbase from the hostname.carpX files and rebooted, as well as
explicitly trying to set advbase to 0 via ifconfig, as well as destroying
the carp interfaces and recreating with ifconfig with an advbase of 0.
However when running ifconfig advbase states it has a value of 1 in all
cases.

>
> --
> Pozdrawiam,
> Cezary Morga
> "Nah, a database recovery, some system tuning and a couple of helpdesk
> calls -
> nothing that can't wait..." (BOFH @theregister.co.uk)



Re: Advbase range?

2008-09-18 Thread Cezary Morga
Dnia czwartek, 18 wrze6nia 2008 04:41, napisa3e6:
> what is the range of the advbase?
>
> advskew is 0-255 but vhid's are 1-255 and the man page just states advbase
> is an 8-bit number with a default of 1, so its a bit ambiguous.

There's nothing ambiguous in 8-bit number, and as such the range for advbase
is 0-255.

> I havent been able to set advbase to 0 so I am assuming its 1-255, however
> I have seen posts of people configuring the advbase to 0. Is this
> decapracated now?

I'm not a programmer, but as far as I can read C, there's no restrain in 4.3
code on setting advbase to 0.
--
Pozdrawiam,
Cezary Morga
"Nah, a database recovery, some system tuning and a couple of helpdesk calls -
nothing that can't wait..." (BOFH @theregister.co.uk)