]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
11 years agofile: recognize bitmap and graymap ppm images
ppatience0 [Sun, 12 May 2013 16:53:43 +0000 (12:53 -0400)]
file: recognize bitmap and graymap ppm images

writeppm: do not print extra space after each pixel for graymap formats to save space

11 years agoether8169: do phywakeup magic only for specific mac versions (from openbsd)
cinap_lenrek [Sun, 12 May 2013 16:25:24 +0000 (18:25 +0200)]
ether8169: do phywakeup magic only for specific mac versions (from openbsd)

11 years agoether8169: and phy wakeup and reset phy before enabling auto negotiation
cinap_lenrek [Sun, 12 May 2013 00:58:02 +0000 (02:58 +0200)]
ether8169: and phy wakeup and reset phy before enabling auto negotiation

this brings up the 8198B on BurnZeZ's ASRock Z68 Professional Gen3 board.

11 years agodevmnt: fix mount device leak and allocation error handling in mntversion()
cinap_lenrek [Sat, 11 May 2013 18:54:50 +0000 (20:54 +0200)]
devmnt: fix mount device leak and allocation error handling in mntversion()

the fist problem is that qopen() might return nil and that kstrdup() will
sleep, so we should try to avoid holding the mntalloc lock. so we move
the kstrdup() and qopen() calls before the Mnt allocation, and properly
recover the memory if we fail later.

the second problem was that we error(Eshort) after we already created the Mnt
when returnlen < sizeof(f.version). this check has to happen *before* we
even attempt to allocate the Mnt structures. note that we only copy the
version string once everything is in the clear, so the semantics of the
user buffer not being modified in case of error is not changed.

a little cleanup in muxclose(), getting rid of mntptfree()...

11 years agosdide: add Intel SERIES 6 SATA controller pci ids
cinap_lenrek [Sat, 11 May 2013 16:45:46 +0000 (18:45 +0200)]
sdide: add Intel SERIES 6 SATA controller pci ids

11 years agoacme: apply nemos acmediskread patch (from sources)
cinap_lenrek [Sat, 11 May 2013 16:43:03 +0000 (18:43 +0200)]
acme: apply nemos acmediskread patch (from sources)

pread does not guarantee that it would read all the data asked for.
But acme usage of disk assumes that. This issues as many reads as
needed to make acme work when read returns less data than it wanted.

11 years agoape: change types from unsigned long to void* for rendezvous() and segattach()/segbrk...
cinap_lenrek [Sat, 11 May 2013 16:34:40 +0000 (18:34 +0200)]
ape: change types from unsigned long to void* for rendezvous() and segattach()/segbrk() (erik), use uniqueue rendezvous tags for _buf and listen

11 years agoawk: proctab.c is always regenerated from maketab, so it is unnecessary to keep it
ppatience0 [Fri, 10 May 2013 00:48:23 +0000 (20:48 -0400)]
awk: proctab.c is always regenerated from maketab, so it is unnecessary to keep it

11 years agosrv: be nice, close the previously duped pipe filedescriptor
cinap_lenrek [Thu, 9 May 2013 23:24:11 +0000 (01:24 +0200)]
srv: be nice, close the previously duped pipe filedescriptor

11 years agofortunes: all the world's a social vax cloud
khm [Thu, 9 May 2013 01:07:02 +0000 (21:07 -0400)]
fortunes: all the world's a social vax cloud

11 years agosamterm: revert previous changes.
ppatience0 [Thu, 9 May 2013 00:34:50 +0000 (20:34 -0400)]
samterm: revert previous changes.

11 years agosamterm: move cursor to next tabstop or non-space character before backspacing in...
ppatience0 [Wed, 8 May 2013 21:47:48 +0000 (17:47 -0400)]
samterm: move cursor to next tabstop or non-space character before backspacing in spaces mode. this makes it less annoying to backspace (it's more like tabs).

11 years agoape: remove unused variables
ppatience0 [Tue, 7 May 2013 00:51:18 +0000 (20:51 -0400)]
ape: remove unused variables

11 years agoape: fix uninitialized variable bug in getfields()
ppatience0 [Tue, 7 May 2013 00:24:19 +0000 (20:24 -0400)]
ape: fix uninitialized variable bug in getfields()

11 years agomerge
ppatience0 [Mon, 6 May 2013 23:37:51 +0000 (19:37 -0400)]
merge

11 years agoaccess: unused variable
ppatience0 [Mon, 6 May 2013 23:35:03 +0000 (19:35 -0400)]
access: unused variable

11 years agopbs: allow 9bootfat start cluster beyond 0xFFFF
cinap_lenrek [Sun, 5 May 2013 23:15:46 +0000 (01:15 +0200)]
pbs: allow 9bootfat start cluster beyond 0xFFFF

pbs failed to load (silently loading garbage) 9BOOTFAT from start
cluster beyond FFFF because we ignored the low word from the
directory entry. now taking the high 16 bit of the directory's
start cluster into account.

11 years agodevip: dont raise error() out of Fsprotocone()
cinap_lenrek [Sun, 5 May 2013 02:28:50 +0000 (04:28 +0200)]
devip: dont raise error() out of Fsprotocone()

Fsprotoclone() is not supposed to raise error, but return nil.
ipopen() seemed to assume otherwise as it setup error label
before calling Fsprotoclone(). fix ipopen(), make Fsprotoclone()
return nil instead of raising error.

11 years agodevip: handle malloc errors, fix queue leaks
cinap_lenrek [Sun, 5 May 2013 01:56:11 +0000 (03:56 +0200)]
devip: handle malloc errors, fix queue leaks

Fsprotocone():

qopen() and qbypass() can fail and return nil, so make sure
the connection was not partially created by checking if read
and write queues have been setup by the protocol create hanler.
on error, free any resources of the partial connection and
error out.

netlogopen(): check malloc() error.

11 years agolibdraw: fix font f->cacheimage nil dereference
cinap_lenrek [Sat, 4 May 2013 18:36:28 +0000 (20:36 +0200)]
libdraw: fix font f->cacheimage nil dereference

the initial fontresize() might fail but its error code is ignored
potentially leaving f->cacheimage == nil. make sure we call
fontresize() in loadchar() when theres no cacheimage and check the
return value to avoid nil pointer dereference.

11 years agolibmach: update mips disassembler (from sources)
cinap_lenrek [Sat, 4 May 2013 16:40:05 +0000 (18:40 +0200)]
libmach: update mips disassembler (from sources)

11 years agosort: handle write error in debug mode
cinap_lenrek [Sat, 4 May 2013 16:33:52 +0000 (18:33 +0200)]
sort: handle write error in debug mode

11 years agobio: use UTFmax for Bungetsize and fix libmach to include <libc.h> before <bio.h...
cinap_lenrek [Sat, 4 May 2013 16:30:49 +0000 (18:30 +0200)]
bio: use UTFmax for Bungetsize and fix libmach to include <libc.h> before <bio.h> (from sources)

11 years agonedmail: recognize image/jpg mimetype
cinap_lenrek [Sat, 4 May 2013 05:03:37 +0000 (07:03 +0200)]
nedmail: recognize image/jpg mimetype

11 years agou9fs: fix compilation warnings
ftrvxmtrx [Sat, 4 May 2013 00:53:05 +0000 (02:53 +0200)]
u9fs: fix compilation warnings

11 years agou9fs: make it compile
ftrvxmtrx [Sat, 4 May 2013 00:43:27 +0000 (02:43 +0200)]
u9fs: make it compile

11 years agoape: get rid of fixed MUXADDR for buffered i/o
cinap_lenrek [Fri, 3 May 2013 17:34:48 +0000 (19:34 +0200)]
ape: get rid of fixed MUXADDR for buffered i/o

instead of trying to resize the segment (which will not work when
the kernel picks the address as it will allocate right before
the base of the topmost segment), we create the mux segment with the
maximum size needed (arround 1.4MB) for OPEN_MAX filedescriptors.

buf slots will be reused and slots get demand paged once used.

11 years agomkpaqfs(8): correct maximum block size (from erik quanstros mkpaqfsman patch)
cinap_lenrek [Fri, 3 May 2013 11:57:00 +0000 (13:57 +0200)]
mkpaqfs(8): correct maximum block size (from erik quanstros mkpaqfsman patch)

11 years agoape: remove unused variables from _buf (from erik qunastros _bufupd patch)
cinap_lenrek [Fri, 3 May 2013 11:46:27 +0000 (13:46 +0200)]
ape: remove unused variables from _buf (from erik qunastros _bufupd patch)

11 years agofixed operand size for ADD SP, n
qeed [Thu, 2 May 2013 14:40:45 +0000 (10:40 -0400)]
fixed operand size for ADD SP, n

11 years agodevsd: initialize unit->sense[0] in sdsetsense() (from erik quanstroms 9atom)
cinap_lenrek [Thu, 2 May 2013 21:12:37 +0000 (23:12 +0200)]
devsd: initialize unit->sense[0] in sdsetsense() (from erik quanstroms 9atom)

11 years agochan: fix potential path leak on clone in namec() (from erik quanstroms 9atom)
cinap_lenrek [Wed, 1 May 2013 19:56:02 +0000 (21:56 +0200)]
chan: fix potential path leak on clone in namec() (from erik quanstroms 9atom)

11 years agodevpipe: fix channel and queue leaks (from erik quanstroms 9atom)
cinap_lenrek [Wed, 1 May 2013 17:03:56 +0000 (19:03 +0200)]
devpipe: fix channel and queue leaks (from erik quanstroms 9atom)

11 years agoaoe: updating aoe driver from erik quanstros 9atom
cinap_lenrek [Wed, 1 May 2013 16:50:07 +0000 (18:50 +0200)]
aoe: updating aoe driver from erik quanstros 9atom

  1  the config string was grabbed Aoehsz too far into the packet due to using the wrong pointer to start.
  2  never accept a response with tag Tmgmt or Tfree.
  3  defend against "malicious" responses; ones with a response Aoehdr.type != request Aoehdr.type. this previously could
 cause the initiator to crash.
  4  vendor commands were improperly filtered out.

11 years agodevloopback: fix potential channel leak on allocation error (from eriks 9atom)
cinap_lenrek [Wed, 1 May 2013 16:31:13 +0000 (18:31 +0200)]
devloopback: fix potential channel leak on allocation error (from eriks 9atom)

11 years agocc: accept 24 bit numeric runes
cinap_lenrek [Wed, 1 May 2013 14:55:11 +0000 (16:55 +0200)]
cc: accept 24 bit numeric runes

11 years agofrexp: handle NaN values (from sources)
cinap_lenrek [Wed, 1 May 2013 14:44:04 +0000 (16:44 +0200)]
frexp: handle NaN values (from sources)

11 years agouartpci: add detection for StarTech PCI8S9503V (P588UG) (from sources)
cinap_lenrek [Wed, 1 May 2013 14:29:58 +0000 (16:29 +0200)]
uartpci: add detection for StarTech PCI8S9503V (P588UG) (from sources)

11 years agorio: fix highlight text for -b
stanley lieber [Wed, 1 May 2013 01:03:12 +0000 (21:03 -0400)]
rio: fix highlight text for -b

11 years agoblogcom +x
aiju [Tue, 30 Apr 2013 15:02:14 +0000 (17:02 +0200)]
blogcom +x

11 years agoadded blogcom
aiju [Tue, 30 Apr 2013 14:57:27 +0000 (16:57 +0200)]
added blogcom

11 years ago5c: dont emit conditional integer division instructions
cinap_lenrek [Mon, 29 Apr 2013 18:15:40 +0000 (20:15 +0200)]
5c: dont emit conditional integer division instructions

the integer division instructions are emulated with _div()
function patched in by 5l which does not handle conditional
execution. so do not optimize away the branch in that case.

11 years agoFix double-free fault when isaconfig returns nothing for "etherN". (from richard...
cinap_lenrek [Mon, 29 Apr 2013 16:39:44 +0000 (18:39 +0200)]
Fix double-free fault when isaconfig returns nothing for "etherN". (from richard millers devether-doublefree patch)

11 years ago/sys/lib/rootstub: fix missing /alpha/lib/ape directory
ppatience0 [Mon, 29 Apr 2013 15:12:47 +0000 (11:12 -0400)]
/sys/lib/rootstub: fix missing /alpha/lib/ape directory

11 years agobootrc: fix spacing when asking for fs/auth ip
ppatience0 [Sun, 28 Apr 2013 22:34:47 +0000 (18:34 -0400)]
bootrc: fix spacing when asking for fs/auth ip

11 years agofix missing return compile error for manual book index generator
cinap_lenrek [Sun, 28 Apr 2013 14:47:03 +0000 (16:47 +0200)]
fix missing return compile error for manual book index generator

11 years agomerge
ftrvxmtrx [Sat, 27 Apr 2013 22:23:20 +0000 (00:23 +0200)]
merge

11 years agoacme: fix more error messages
ftrvxmtrx [Sat, 27 Apr 2013 22:19:35 +0000 (00:19 +0200)]
acme: fix more error messages

11 years agolibdraw: avoid printing error on closemouse()
cinap_lenrek [Sat, 27 Apr 2013 02:21:08 +0000 (04:21 +0200)]
libdraw: avoid printing error on closemouse()

11 years agolibdraw: exit mouseproc() on read error instead of spinning
cinap_lenrek [Sat, 27 Apr 2013 02:10:39 +0000 (04:10 +0200)]
libdraw: exit mouseproc() on read error instead of spinning

11 years agoacme/win: fix error messages
ftrvxmtrx [Fri, 26 Apr 2013 18:35:10 +0000 (20:35 +0200)]
acme/win: fix error messages

11 years agonusb/serial: Add support for Amontec JTAGkey devices (from sources)
cinap_lenrek [Fri, 26 Apr 2013 13:25:25 +0000 (15:25 +0200)]
nusb/serial: Add support for Amontec JTAGkey devices (from sources)

11 years agofix <mach.h> types in manual (erik quanstros machmantype patch)
cinap_lenrek [Wed, 24 Apr 2013 22:13:19 +0000 (00:13 +0200)]
fix <mach.h> types in manual (erik quanstros machmantype patch)

11 years agomake all the commands agnostic about Rune width. (from sources)
cinap_lenrek [Wed, 24 Apr 2013 18:13:18 +0000 (20:13 +0200)]
make all the commands agnostic about Rune width. (from sources)

11 years agocpu: don't print spurious errstr for bad auth method, fix comment
cinap_lenrek [Wed, 24 Apr 2013 00:41:36 +0000 (02:41 +0200)]
cpu: don't print spurious errstr for bad auth method, fix comment

11 years agofortunes: i would not be at all surprised if the nix kernel (with or without the...
stanley lieber [Tue, 23 Apr 2013 22:53:37 +0000 (18:53 -0400)]
fortunes: i would not be at all surprised if the nix kernel (with or without the AC stuff) ends up being the basis for continuing evolution of plan9.

11 years agoftpd: "opts utf8 on"
cinap_lenrek [Tue, 23 Apr 2013 17:37:56 +0000 (19:37 +0200)]
ftpd: "opts utf8 on"

11 years agoftpd: fix nil pointer derefernece when ominiting arguments to opts command
cinap_lenrek [Tue, 23 Apr 2013 20:47:27 +0000 (22:47 +0200)]
ftpd: fix nil pointer derefernece when ominiting arguments to opts command

11 years agoftpd: implement "OPTS UTF-8 ON", fix uninitialized printing uninitialized memory...
cinap_lenrek [Tue, 23 Apr 2013 20:38:03 +0000 (22:38 +0200)]
ftpd: implement "OPTS UTF-8 ON", fix uninitialized printing uninitialized memory in HELP command

11 years ago- use the double-buffer buffer to allow redrawing on resize events.
cinap_lenrek [Mon, 22 Apr 2013 17:10:09 +0000 (19:10 +0200)]
- use the double-buffer buffer to allow redrawing on resize events.
specifing -d on the command line now only disables synchronous
drawing events.

- use threaded mouse and keyboard to allow for asynchronous
receoption of quit messages.  this allows plot to exit before drawing
is completed.  for programs like mapdemo, this is important.

there were two things that needed to get fixed as a result
- replace fprint(2, ...); exits("bad"); with sysfatal.  also get rid
of stdio.

- dpoint needed a mach-dependentent (sic) version.  otherwise
points on a resized screen will not be properly placed.

11 years agoether8169: fix deadlock in allocation error case for attach. (thanks erik)
cinap_lenrek [Mon, 22 Apr 2013 16:50:29 +0000 (18:50 +0200)]
ether8169: fix deadlock in allocation error case for attach. (thanks erik)

typo in error case, should qunlock() instead of qlock().

11 years agographics(2): add newwindow() key reference
cinap_lenrek [Mon, 22 Apr 2013 20:14:08 +0000 (22:14 +0200)]
graphics(2): add newwindow() key reference

11 years agoaux/listen: do not redirect stderr (fd 2) of the listener to the network connection
cinap_lenrek [Sat, 20 Apr 2013 19:42:20 +0000 (21:42 +0200)]
aux/listen: do not redirect stderr (fd 2) of the listener to the network connection

Charles Forsyth described the problem below in:

http://9fans.net/archive/2013/04/190

In a few cases, the kernel will use pprint to put a diagnostic on the
standard error (file descriptor 2). One of those is a warning that the
process has used more than 100 file descriptors. That message is possibly
obsolete and could be removed, but there are others, such as notifying an
uncaught trap that are probably helpful to make visible. In any case, as
things stand, a busy exportfs might have many file descriptors open,
provoking the diagnostic. Unfortunately, aux/listen and aux/listen1 connect
file descriptor 2 to the incoming network connection. If the connection's
protocol is not a simple, unstructured, textual one, diagnostics on the
standard error will cause confusion, in particular to devmnt.c if 9p is used.

/rc/bin/service files that start applications that run special protocols
might want to redirect file descriptor 2; alternatively, perhaps aux/listen
shouldn't redirect fd 2 by default: the few commands that do connect the remote
user to shells, or equivalent, including telnetd and sshd could dup 1 to 2
when that was sensible.

11 years agomerge
cinap_lenrek [Sat, 20 Apr 2013 20:51:22 +0000 (22:51 +0200)]
merge

11 years agoip/torrent: use NPROC processes in parallel for calculating initial piece hashes
cinap_lenrek [Sat, 20 Apr 2013 20:47:39 +0000 (22:47 +0200)]
ip/torrent: use NPROC processes in parallel for calculating initial piece hashes

11 years agomouse: fix cursor redraw to prevent screen blanking (thanks erik)
cinap_lenrek [Tue, 16 Apr 2013 16:52:49 +0000 (18:52 +0200)]
mouse: fix cursor redraw to prevent screen blanking (thanks erik)

11 years agodevmouse: remove unneeded reference to kerndate
cinap_lenrek [Sun, 14 Apr 2013 16:28:55 +0000 (18:28 +0200)]
devmouse: remove unneeded reference to kerndate

11 years agosdiahci: add pci id for 82801eb/er and c210
cinap_lenrek [Sun, 14 Apr 2013 16:13:26 +0000 (18:13 +0200)]
sdiahci: add pci id for 82801eb/er and c210

11 years agoreduce software cursor flickering
cinap_lenrek [Sun, 14 Apr 2013 14:28:54 +0000 (16:28 +0200)]
reduce software cursor flickering

the software cursor starts flickering and reacts bumby if a process
spends most of its time with drawlock acquired because the timer interrupt
thats supposed to redraw the cursor fails to acquire the lock at the time
the timer fires.

instead of trying to draw the cursor on the screen from a timer interrupt
30 times per second, devmouse now creates a process calling cursoron() and
cursoroff() when the cursor needs to be redrawn. this allows the swcursor
to schedule a redraw while holding the drawlock in swcursoravoid() and
cursoron()/cursoroff() are now able to wait for a qlock (drawlock) because
they get called from process context.

the overall responsiveness is also improved with this change as the cursor
redraw rate isnt limited to 30 times a second anymore.

11 years agofortunes: support for non-blocking i/o
stanley lieber [Sat, 13 Apr 2013 00:51:47 +0000 (20:51 -0400)]
fortunes: support for non-blocking i/o

11 years agomerge
ppatience0 [Fri, 12 Apr 2013 22:39:12 +0000 (18:39 -0400)]
merge

11 years agojpg(1): update bmp and yuv usage
ppatience0 [Fri, 12 Apr 2013 22:36:22 +0000 (18:36 -0400)]
jpg(1): update bmp and yuv usage

11 years agopci: Add Intel C216 chipset PCI support (from sources)
cinap_lenrek [Fri, 12 Apr 2013 21:07:40 +0000 (23:07 +0200)]
pci: Add Intel C216 chipset PCI support (from sources)

11 years agousbehci: align page td buffer for >16K transfers, fix isohsinit()
cinap_lenrek [Fri, 12 Apr 2013 20:14:32 +0000 (22:14 +0200)]
usbehci: align page td buffer for >16K transfers, fix isohsinit()

from ehci spec:

The buffer pointer list in the qTD is long enough to support a maximum
transfer size of 20K bytes. This case occurs when all five buffer pointers
are used and the first offset is zero. A qTD handles a 16Kbyte buffer
with any starting buffer alignment.

11 years agomerge
cinap_lenrek [Thu, 11 Apr 2013 17:34:43 +0000 (19:34 +0200)]
merge

11 years agondb/dns: dont override req->aborttime in udpquery()
cinap_lenrek [Thu, 11 Apr 2013 17:33:07 +0000 (19:33 +0200)]
ndb/dns: dont override req->aborttime in udpquery()

overriding aborttime in udpquery() makes no sense. it causes
recursive queries to extend the timeout infinitely. nobody
but the issuer of the request should modify aborttime.

11 years agolibauth: auth_chuid empty (from sources)
cinap_lenrek [Thu, 11 Apr 2013 11:45:11 +0000 (13:45 +0200)]
libauth: auth_chuid empty (from sources)

instead of an "i/o count too small", detect a missing capability (empty, null string)
before the write, and diagnose it as such.

11 years ago9nfs: apply patch/nfswarnandflags (from sources, thanks nemo)
cinap_lenrek [Wed, 10 Apr 2013 18:51:39 +0000 (20:51 +0200)]
9nfs: apply patch/nfswarnandflags (from sources, thanks nemo)

Remove a warning in 9nfs and make it use the std. CFLAGS
(we detected the warning using -W).

11 years agopostscript: remove private copy of utf8 implementation (from sources)
cinap_lenrek [Wed, 10 Apr 2013 18:47:01 +0000 (20:47 +0200)]
postscript: remove private copy of utf8 implementation (from sources)

11 years agoetheriwl: add pci id for Centrino Wireless-N 100 (thanks fgudin9)
cinap_lenrek [Wed, 10 Apr 2013 20:13:54 +0000 (22:13 +0200)]
etheriwl: add pci id for Centrino Wireless-N 100 (thanks fgudin9)

11 years agoape: inet_ntop() print v4 mapped addresses in v6 as dotted quad
cinap_lenrek [Fri, 5 Apr 2013 12:09:41 +0000 (14:09 +0200)]
ape: inet_ntop() print v4 mapped addresses in v6 as dotted quad

11 years agosam(1): document -i flag
ppatience0 [Thu, 4 Apr 2013 20:44:23 +0000 (16:44 -0400)]
sam(1): document -i flag

11 years agosam, samterm: add -i flag to make tab insert spaces up to the next tabstop and backsp...
ppatience0 [Thu, 4 Apr 2013 20:38:36 +0000 (16:38 -0400)]
sam, samterm: add -i flag to make tab insert spaces up to the next tabstop and backspace to delete spaces until the previous tabstop

11 years agointel ethernet: default to 16 byte cache line size when not properly initialized...
cinap_lenrek [Wed, 3 Apr 2013 19:51:42 +0000 (21:51 +0200)]
intel ethernet: default to 16 byte cache line size when not properly initialized and disable checksum offload for igbe (from sources)

11 years agopci: add pci bridge id for Intel 6 Series/C200 (from sources)
cinap_lenrek [Wed, 3 Apr 2013 19:47:50 +0000 (21:47 +0200)]
pci: add pci bridge id for Intel 6 Series/C200 (from sources)

11 years agopushtls: remove unneccesary include <auth.h> (from sources)
cinap_lenrek [Wed, 3 Apr 2013 19:46:33 +0000 (21:46 +0200)]
pushtls: remove unneccesary include <auth.h> (from sources)

11 years agoadd import -z option to skip initial tree negotiation (from mycroftiv)
cinap_lenrek [Tue, 2 Apr 2013 02:23:26 +0000 (04:23 +0200)]
add import -z option to skip initial tree negotiation (from mycroftiv)

11 years agoape: inet_pton() parse dotted address to IPv4 mapped addresses for AF_INET6
cinap_lenrek [Tue, 2 Apr 2013 01:48:10 +0000 (03:48 +0200)]
ape: inet_pton() parse dotted address to IPv4 mapped addresses for AF_INET6

11 years agofix parseip()
cinap_lenrek [Tue, 2 Apr 2013 01:39:24 +0000 (03:39 +0200)]
fix parseip()

addresses like: "1:2:3:4:5:6:7:255.255.255.255" caused parseip
to write beyond the ip buffer.

11 years agoape: check *alen before copying in getpeername(), getsockname() and accept()
cinap_lenrek [Mon, 1 Apr 2013 23:40:29 +0000 (01:40 +0200)]
ape: check *alen before copying in getpeername(), getsockname() and accept()

*alen has to be initialized to the size of the buffer
by the caller, and we are supposed to put the real
size of the address in there, but not copy more than
the original *alen value (truncate).

11 years agoape: add inet_aton()
cinap_lenrek [Mon, 1 Apr 2013 17:16:18 +0000 (19:16 +0200)]
ape: add inet_aton()

11 years agopython: update python build configuration to new ape capabilities like getaddrinfo...
cinap_lenrek [Sun, 31 Mar 2013 16:54:45 +0000 (18:54 +0200)]
python: update python build configuration to new ape capabilities like getaddrinfo(), ipv6 and fix EISCON typo in ape

11 years agoape: initial IPv6 support, inet_pton()/inet_ntop(), getaddrinfo()/getnameinfo()
cinap_lenrek [Sun, 31 Mar 2013 16:52:45 +0000 (18:52 +0200)]
ape: initial IPv6 support, inet_pton()/inet_ntop(), getaddrinfo()/getnameinfo()

11 years agoape: define FD_SETSIZE for select()
cinap_lenrek [Sun, 31 Mar 2013 16:46:14 +0000 (18:46 +0200)]
ape: define FD_SETSIZE for select()

11 years agomerge
ppatience0 [Sun, 31 Mar 2013 02:52:30 +0000 (22:52 -0400)]
merge

11 years agoether82563: add untested devices from OpenBSD's em(4) Intel driver. also update some...
ppatience0 [Sun, 31 Mar 2013 02:50:48 +0000 (22:50 -0400)]
ether82563: add untested devices from OpenBSD's em(4) Intel driver. also update some names according to OpenBSD's driver (previously added device, 0x10c0, is also from OpenBSD's driver).

11 years agoape: fix potential double close in socket() and protect rock chain with spinlock
cinap_lenrek [Fri, 29 Mar 2013 19:49:49 +0000 (20:49 +0100)]
ape: fix potential double close in socket() and protect rock chain with spinlock

11 years agoether82563: add 82562V-2 did
ppatience0 [Sun, 24 Mar 2013 05:51:43 +0000 (01:51 -0400)]
ether82563: add 82562V-2 did

11 years agofortunes: Now reboot twice[1].
stanley lieber [Sun, 24 Mar 2013 23:49:02 +0000 (19:49 -0400)]
fortunes: Now reboot twice[1].

11 years agowifi: cleanup
cinap_lenrek [Sun, 24 Mar 2013 20:59:47 +0000 (21:59 +0100)]
wifi: cleanup

cleanup wifiencrypt()/wifidecrypt() routines moving tkip
and ccmp in separate routines so we dont use less stack
space.