Ежемесячные архивы: Январь 2011

парсим dhcpd.leases

небольшая программа на AWK для приведения файлика dhcpd.leases в читабельный вид

awk ' { out = ""} \
{ $1=="lease"||$1=="client-hostname" ? out=" " $2 : out=out } \
{ $1=="binding"||$1=="hardware" ? out= " " $3: out=out } \
{ $1=="ends"? out=" " $3 " " $4: out=out } \
{ $1=="}"? out="\n": out=out } \
{ printf out," " }' dhcpd.leases \
| grep active \
| sed -e s/'[{};" ]'/\ /g  \
| awk '{ printf "%-15s %-17s %-10s %-5s\n", $1, $5, $2, $3 }'

netflow and tcp или почему 3 flag на сессию

статья наглядно демонстрирующая особенности netflow и tcp http://pierky.wordpress.com/2010/03/13/netflow-weird-tcp-flags-in-flowviewer-and-flow-print/

multicast to unicast

udpxy is a UDP-to-HTTP multicast traffic relay daemon:
it forwards UDP traffic from a given multicast subscription
to the requesting HTTP client.

WWW: http://udpxy.sourceforge.net/

/usr/ports/net/udpxy/

небольшой патч для увеличения коннектов до 128 ( по дефолту 16)patch-uopt
положить в /usr/ports/net/udpxy/files/patch-uopt.h