Re: trunk + loadbalance

2007-07-21 Thread Jamex Reynolds
 What hashed protocol means exactly?, how can i
test the loadbalance of  trunk?

From Wikipedia:

A hash function [1] is a reproducible method of
turning some kind of data into a (relatively) small
number that may serve as a digital fingerprint of
the data.

So the packets get their fingerprint taken, depending
if the fingerprint follows into the A catgeory or
B category it would get routed to NIC A or NIC
B.

You could try spoofing the MAC address to see if
that toggled the category. As you are probably noticing
all traffic is getting sent to the same NIC because
it's hash value (aka fingerprint) doesn't change.

Hopefully this explanation was accurate and useful. 
I'm not really an expert and have never used trunk but
I think I know what is meant in this case.

Cheers,
James



dd if=/dev/audio of=/tmp/raw reads 0 bytes using azalia on 4.1-Release

2007-07-20 Thread Jamex Reynolds
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=44100
record.channels=2
record.precision=16
record.encoding=slinear_le
record.gain=0
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0


jamex:45$ dd if=/dev/sound of=/tmp/raw
^C0+0 records in
0+0 records out
0 bytes transferred in 6.796 secs (0 bytes/sec)
jamex:46$ ls -l /dev/sound*
lrwxr-xr-x  1 root  wheel 6 Jul 19 14:10 /dev/sound@ - sound0
crw-rw-rw-  1 root  wheel   42,   0 Jul 19 14:23 /dev/sound0

jamex:48$ uname -a
OpenBSD key.jamesreynoldstown.org 4.1 GENERIC#874 amd64



plan 9 from user space compiling issue

2006-05-07 Thread jamex
Has anyone been able to compile plan 9 from user space or as it is also
called plan9port?

Running ./INSTALL as root fails as follows on 3.9-Release-i386.

$ su
Password:
# cd /usr/local/plan9
# ./INSTALL
* Resetting /usr/local/plan9/config
* Building everything (be patient)...
 cd /usr/local/plan9/src/cmd; mk all
9l -o o.9p 9p.o
/usr/local/plan9/src/lib9/sleep.c:25: undefined reference to `sched_yield'
collect2: ld returned 1 exit status
mk: 9l -o o.9p ...  : exit status=exit(1)
mk: for i in ...  : exit status=exit(1)
#



Connecting to Airport Extreme Basestation with ural

2006-05-07 Thread jamex
Hi,

I can't seem to get WEP to work with my Airport Extreme Base Station (i
believe the model known as SNOW :{) and my Linksys Wireless G WUSB54G ver.
4
which is detected and supported using the ural(4) driver. Its really great
that OBSD supports as many devices as it does. The AEBase Station is
loaded with firmware version 5.7

Unencrypted works well with the Base Station or if you prefer AP. I can
connect at 54Mbps and lower. When i enable the WEP key on the base station
and run ifconfig the status line says No Network. I've tried many
different combinations of settings such as specifiying the channel, BSSID
and nwid when connecting. The result is always that my network connection
is not active. Do i need to enable some cryptographic support in the OS?
I'm running a brand new install and am definitely a neophyte still.

This behaviour has happened with 40bit WEP and 128bit WEP. I know that WEP
sucks but I don't want to leave a computer on 247 to encrypt the traffic
on my home wireless network from passerbys.


Cheers,
Jamex



Re: Connecting to Airport Extreme Basestation with ural

2006-05-07 Thread jamex
Hi, here is my broken WEP hostname.ural0 file:

media DS11 mode 11b nwkey testpassword9
inet 10.0.1.5 255.255.255.0 10.0.1.255

my working hostname.ural0 file is :

$ cat /etc/hostname.ural0
media DS11 mode 11b
inet 10.0.1.5 255.255.255.0 10.0.1.255

i've tried with Hex keys as well and no dice.
Can anyone share any success stories?

Cheers,
James

 On 5/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:Unencrypted works
 well with the Base Station or if you prefer AP. I can

 connect at 54Mbps and lower. When i enable the WEP key on the base
 station
 and run ifconfig the status line says No Network. I've tried many
 different combinations of settings such as specifiying the channel,
 BSSID
 and nwid when connecting. The result is always that my network
 connection
 is not active. Do i need to enable some cryptographic support in the OS?
 I'm running a brand new install and am definitely a neophyte still.


 From what you've described, it sounds like you're forgetting to specify
 the
 wep key on the openbsd machine. This is the relevant portion from the
 ifconfig man page:

  nwkey key   (IEEE 802.11 devices only) Enable WEP encryption for
 IEEE
  802.11-based wireless network interfaces using the
 speci-
  fied key.  The key can either be a string, a series
 of
  hexadecimal digits (preceded by `0x'), or a set of
 keys
  of the form ``n:k1,k2,k3,k4'' where `n' specifies
 which
  of the keys will be used for transmitted packets, and
 the
  four keys, ``k1'' through ``k4'', are configured as
 WEP
  keys.  If a set of keys is specified, a comma (`,')
 with-
  in the key must be escaped with a backslash.  Note
 that
  if multiple keys are used, their order must be the
 same
  within the network.  For IEEE 802.11 wireless
 networks,
  the length of each key is restricted to 40 bits, i.e.
 a
  5-character string or 10 hexadecimal digits.  Wave-
  LAN/IEEE Gold and newer Prism cards will also accept
 a
  104-bit (13-character) key



OT: X.org bug ( can someone enlighten me ? )

2006-05-03 Thread jamex
Hi,

I don't understand this piece of code:

if (getuid() == 0 || geteuid() != 0)

Why check if the geteuid() != 0 if we are only wanting to root to run the
block inside the if statement?

My reasoning is that if geteuid != 0 then the statement evaluates to true
and the code block gets run just like the statement evaluates to true if
the process does have uid of 0. This doesn't make sense to me.

Can anyone draw a better diagram to help me make some sense of this?


James