Added native socks support to libc in FreeBSD 7

2007-12-06 Thread Raffaele De Lorenzo

Hi,
i added a native (client) Socks V4/V5 support inside FreeBSD libc 
library. The work is based of my  project (see 
http://csocks.altervista.org) CSOCKS.

You can get it here:

http://csocks.altervista.org/download/FreeBSD_libc.tar.gz

CHANGES:

I changed the file:

   /usr/src/lib/libc/Makefile

I added the Directory:

   /usr/src/lib/libc/socks

They contains the files:

   csocks.c
   csocks.h
   csocks.conf.5
   csocks.1
   Makefile.inc

I added the configuration file (csocks.conf in the /etc/ directory)

   /usr/src/etc/

INSTALL ISTRUCTIONS:

copy the Makefile in /usr/src/lib/libc/
copy the directory socks in /usr/src/lib/libc/
touch /etc/csocks.conf
recompile the libc and install it (cd /usr/src/lib/libc && make && make 
install)




I Tested it in FreeBSD 7 only on i386

cheers

Raffaele
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


TDMA / Interrupts / Pre-emptible

2007-12-06 Thread Len Gross
I have built a "user land" prototype of a custom network protocol for an RF
network.  It is based on Netgraph and using Ethernet rather than real RF.

Eventually, all the code will go into a special piece of hardware, but the
first hardware really will look like an Ethernet card that puts messages out
N microsends after they are put into its memory. Since the protocol employs
some TimeDivisionMultipleAccess (TDMA), "precise" feeding of the board is
important.

In "userland" I seem to have about 1 ms of "delay"/variability from when I
schedule a timer and when it wakes up a thread.  I think this is pretty much
expected behavior and is fine for algorithm testing.

When I move my userland code to "driver/kernel-land" and set a timer to send
a packet to some hardware how much delay / variability will I see in that
timer?  I think the question is more/less equivalent to the pre-emptibility
of driver code and interrupts in general.

(If this should go to another forum, please advise.)

Thanks in advance.

--Len
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"