ftp(1): new -s flag to specify source IP address

2012-04-18 Thread Lawrence Teo
This diff adds a -s flag to ftp(1) to let the user specify the source IP address of the connection. This is useful when using ftp(1) over VPN tunnels or when an alternate source IP is required to fetch a file from a FTP/HTTP/HTTPS server due to access control policies. The -s flag is present in f

inet(3) man page: reorganize for better readability

2012-04-18 Thread Lawrence Teo
The inet(3) man page has always been rather difficult to read for me, primarily because the order of the inet_* functions in the DESCRIPTION section is not the same as their order in SYNOPSIS. In addition, the descriptions of various functions are grouped together in large paragraphs, making it ha

ftp-proxy(8): ensure nat_range_high is defined in add_nat()

2012-04-18 Thread Lawrence Teo
This simple diff adds a check to the add_nat() function in ftp-proxy(8) to ensure that nat_range_high is defined before proceeding to create the PF NAT rule. I think the original author may have intended to do this since there is an existing check for nat_range_low. Technically, all calls to add_

[patch] compose LED on a usb keyboard

2012-04-18 Thread Alexander Polakov
I got my hands on one of these sun keyboards with a compose key (and LED). uhidev0 at uhub2 port 2 configuration 1 interface 0 "Fujitsu Component Type 6 Keyboard" rev 1.00/1.02 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 modifier keys, 6 key codes, country code 33 wskbd1 at ukbd0 mux 1 wskbd1:

pax(1) missing newlines

2012-04-18 Thread Thomas Pfaff
Screws up my beautiful prompt if I ^C a copy job, plus uppercase "Cpu". Index: pax.c === RCS file: /cvs/src/bin/pax/pax.c,v retrieving revision 1.32 diff -u -p -r1.32 pax.c --- pax.c 26 May 2011 14:42:06 - 1.32 +++ pax.

Re: test diff: unmap needs flags

2012-04-18 Thread Jérémie Courrèges-Anglas
Hi. It has survived a system build and daily use so far. kern.version=OpenBSD 5.1-current (GENERIC) #0: Mon Apr 16 02:24:16 CEST 2012 j...@moo.wxcvbn.org:/usr/src/sys/arch/i386/compile/GENERIC