]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
6 years agodevip: properly initialize the connection ignoreadvice and tos flags
cinap_lenrek [Tue, 10 Apr 2018 18:02:03 +0000 (20:02 +0200)]
devip: properly initialize the connection ignoreadvice and tos flags

6 years agoip/traceroute: icmpv6 support
cinap_lenrek [Tue, 10 Apr 2018 17:06:34 +0000 (19:06 +0200)]
ip/traceroute: icmpv6 support

6 years agoip/ping: stop doing clever things with dialstrings, just let cs/dial figure it out
cinap_lenrek [Mon, 9 Apr 2018 22:56:50 +0000 (00:56 +0200)]
ip/ping: stop doing clever things with dialstrings, just let cs/dial figure it out

6 years agoip(3): troff magic
cinap_lenrek [Sun, 8 Apr 2018 20:22:03 +0000 (22:22 +0200)]
ip(3): troff magic

6 years agoip(3): document changes on /net/arp and /net/iproute
cinap_lenrek [Sun, 8 Apr 2018 20:11:18 +0000 (22:11 +0200)]
ip(3): document changes on /net/arp and /net/iproute

6 years agoip/ipconfig: fix v6 ndp code, use source specific default routes
cinap_lenrek [Sun, 8 Apr 2018 19:16:29 +0000 (21:16 +0200)]
ip/ipconfig: fix v6 ndp code, use source specific default routes

6 years agodevip: implement source specific routing
cinap_lenrek [Sun, 8 Apr 2018 19:15:00 +0000 (21:15 +0200)]
devip: implement source specific routing

6 years agonusb/usbd: increase buffer size to capture port information
cinap_lenrek [Sun, 8 Apr 2018 18:51:48 +0000 (20:51 +0200)]
nusb/usbd: increase buffer size to capture port information

due to the addition of uframes property, the buffer got truncated
resulting in usbd not recognizing the number of roothub ports.

6 years agoremove duplicate -m definition in upasfs(4) (thanks rodri)
henesy [Fri, 6 Apr 2018 23:05:25 +0000 (18:05 -0500)]
remove duplicate -m definition in upasfs(4) (thanks rodri)

6 years agoape: improve assert macro
mischief [Tue, 3 Apr 2018 04:44:21 +0000 (21:44 -0700)]
ape: improve assert macro

in a statement such as:

if(expr)
assert(a);
else
assert(b);

the previous definition of assert would fail to compile, as the else
would be dangling.  with a ternary expression, this construct works
fine.

6 years ago9fs: break 9front case into several cases: 9front, 9bugs, 9contrib, 9grep
stanley lieber [Mon, 2 Apr 2018 23:54:58 +0000 (19:54 -0400)]
9fs: break 9front case into several cases: 9front, 9bugs, 9contrib, 9grep

6 years agoforp(1): document [] and some bugs
aiju [Sat, 31 Mar 2018 12:41:41 +0000 (12:41 +0000)]
forp(1): document [] and some bugs

6 years agoforp: fix precedence for []
aiju [Sat, 31 Mar 2018 12:30:48 +0000 (12:30 +0000)]
forp: fix precedence for []

6 years agogb*: reverse savegame field polarity
qwx [Sat, 31 Mar 2018 09:38:09 +0000 (11:38 +0200)]
gb*: reverse savegame field polarity

6 years agoblit,c64,gb*: fix phaser coolant leak during resize
qwx [Sat, 31 Mar 2018 09:37:25 +0000 (11:37 +0200)]
blit,c64,gb*: fix phaser coolant leak during resize

6 years agoadd forp(1) manpage
aiju [Wed, 28 Mar 2018 20:49:39 +0000 (20:49 +0000)]
add forp(1) manpage

6 years agosat.h: update to include satget
aiju [Wed, 28 Mar 2018 20:36:04 +0000 (20:36 +0000)]
sat.h: update to include satget

6 years agoforp: fix multiplication; change division to C semantics
aiju [Wed, 28 Mar 2018 20:14:29 +0000 (20:14 +0000)]
forp: fix multiplication; change division to C semantics

6 years agoadd forp
aiju [Wed, 28 Mar 2018 17:08:30 +0000 (17:08 +0000)]
add forp

6 years agolibsat: fix one of the satmore() bugs
aiju [Mon, 26 Mar 2018 21:39:23 +0000 (21:39 +0000)]
libsat: fix one of the satmore() bugs

6 years agolock(2): fix typo
Alex Musolino [Fri, 23 Mar 2018 01:04:39 +0000 (11:34 +1030)]
lock(2): fix typo

6 years agosat: satget: don't duplicate binary clauses
aiju [Thu, 22 Mar 2018 13:35:52 +0000 (13:35 +0000)]
sat: satget: don't duplicate binary clauses

6 years agosat: satget: include unit literals
aiju [Thu, 22 Mar 2018 13:15:44 +0000 (13:15 +0000)]
sat: satget: include unit literals

6 years agosat: add satget
aiju [Thu, 22 Mar 2018 12:46:04 +0000 (12:46 +0000)]
sat: add satget

6 years agosshfs: usage
aiju [Tue, 20 Mar 2018 20:51:04 +0000 (20:51 +0000)]
sshfs: usage

6 years agoresample(1): document -n option
aiju [Tue, 20 Mar 2018 20:31:25 +0000 (20:31 +0000)]
resample(1): document -n option

6 years agoman pages: SYNOPSYS typo
23hiro [Tue, 20 Mar 2018 17:24:26 +0000 (18:24 +0100)]
man pages: SYNOPSYS typo

6 years agolibsat: setmalloctag, fix incorrect allocation size
aiju [Tue, 20 Mar 2018 11:23:41 +0000 (11:23 +0000)]
libsat: setmalloctag, fix incorrect allocation size

6 years agodevip: pick source address for neighbor solicitations as of rfc4861 7.2.2, cleanup
cinap_lenrek [Mon, 19 Mar 2018 00:11:08 +0000 (01:11 +0100)]
devip: pick source address for neighbor solicitations as of rfc4861 7.2.2, cleanup

rfc4861 7.2.2:

If the source address of the packet prompting the solicitation is the
same as one of the addresses assigned to the outgoing interface, that
address SHOULD be placed in the IP Source Address of the outgoing
solicitation.

this change adds ndbsendsol() which handles the source address selection
and also handles the arp table locking; avoiding access to the arp entry
after the arp table is unlocked.

cleanups:

- use ipmove() instead of memmove().
- useless extern qualifiers

6 years agomerge
cinap_lenrek [Sun, 18 Mar 2018 06:53:10 +0000 (07:53 +0100)]
merge

6 years agodevip: more v6 improvements
cinap_lenrek [Sun, 18 Mar 2018 06:50:48 +0000 (07:50 +0100)]
devip: more v6 improvements

ipv4local() and ipv6local() now take remote address argument,
returning the closest local address to the source. this
implements the standartized source address selection rules
instead of just returning the first local v4 or v6 address.

the source address selection was broken for esp, rudp an udp,
blindly assuming ifc->lifc->local being a valid v4 address.
use ipv6local() instead.

the v6 routing code used to lookup source address route to
decide to drop the packet instead of checking the interface
on the destination route.

factor out the route hint from Conv and put it in Routehint
structure. avoiding stack bloat in v4 routing. implement the
same trick for v6 avoiding second route lookup in ipoput6.

fix memory leak in icmpv6 router solicitation handling.

remove old unfinished handling of multiple v6 routers. should
implement source specific routes instead.

avoid duplication, use common convipvers() function.

use isv4() instead of memcmp v4prefix.

6 years agoip/ipconfig: stop spamming the console about router receiving RA's
cinap_lenrek [Sun, 18 Mar 2018 06:31:09 +0000 (07:31 +0100)]
ip/ipconfig: stop spamming the console about router receiving RA's

6 years agoadd sat(1) command
aiju [Sun, 18 Mar 2018 03:03:12 +0000 (03:03 +0000)]
add sat(1) command

6 years agosatmore: don't try to override user defined variables
aiju [Sun, 18 Mar 2018 03:01:21 +0000 (03:01 +0000)]
satmore: don't try to override user defined variables

6 years agoadd #pragma incomplete to sat.h
aiju [Sun, 18 Mar 2018 01:15:07 +0000 (01:15 +0000)]
add #pragma incomplete to sat.h

6 years agonusb/ptp: set storage name to their human readable description string
mischief [Sat, 17 Mar 2018 22:06:13 +0000 (15:06 -0700)]
nusb/ptp: set storage name to their human readable description string

6 years agodevusb: fix format print warnings for ep->ntds and ep->uframes
cinap_lenrek [Sat, 17 Mar 2018 20:55:39 +0000 (21:55 +0100)]
devusb: fix format print warnings for ep->ntds and ep->uframes

6 years agocamv: fix display locking issues
cinap_lenrek [Sat, 17 Mar 2018 20:27:07 +0000 (21:27 +0100)]
camv: fix display locking issues

6 years agoadd libsat
aiju [Sat, 17 Mar 2018 19:26:26 +0000 (19:26 +0000)]
add libsat

6 years agomines(1): fix misleading HISTORY wording
aiju [Sat, 17 Mar 2018 19:07:50 +0000 (19:07 +0000)]
mines(1): fix misleading HISTORY wording

6 years agopc64: fix _intrr(), avoid the linker moving _intrr() arround
cinap_lenrek [Sat, 17 Mar 2018 17:25:12 +0000 (18:25 +0100)]
pc64: fix _intrr(), avoid the linker moving _intrr() arround

6 years agopc64: add magic _intrr() symbol for ktrace (thanks mischief)
cinap_lenrek [Sat, 17 Mar 2018 16:19:42 +0000 (17:19 +0100)]
pc64: add magic _intrr() symbol for ktrace (thanks mischief)

6 years agodevfs: revert commit 4000
qwx [Sat, 17 Mar 2018 09:25:27 +0000 (11:25 +0200)]
devfs: revert commit 4000

induces a kernel panic under normal circumstances

6 years agokernel: let /rc/bin/diskparts attach #k after #S partitions are loaded up
qwx [Fri, 16 Mar 2018 23:04:31 +0000 (01:04 +0200)]
kernel: let /rc/bin/diskparts attach #k after #S partitions are loaded up

6 years agodevfs: only set configed flag if config was read successfully
qwx [Fri, 16 Mar 2018 23:00:51 +0000 (01:00 +0200)]
devfs: only set configed flag if config was read successfully

this is just to retry reading the configuration at least once after an error

6 years agonvidia: add pci device id for GeForce 6200 AGB (thanks bitmapper)
cinap_lenrek [Wed, 14 Mar 2018 21:41:30 +0000 (22:41 +0100)]
nvidia: add pci device id for GeForce 6200 AGB (thanks bitmapper)

6 years agogames/mines: build a better ghost trap
aiju [Sat, 10 Mar 2018 14:40:34 +0000 (14:40 +0000)]
games/mines: build a better ghost trap

6 years agomptod/dtomp: add to mp.h
aiju [Fri, 9 Mar 2018 21:30:06 +0000 (21:30 +0000)]
mptod/dtomp: add to mp.h

6 years agomp: add mptod and dtomp
aiju [Fri, 9 Mar 2018 20:51:28 +0000 (20:51 +0000)]
mp: add mptod and dtomp

6 years agoadd camv
aiju [Wed, 7 Mar 2018 20:45:19 +0000 (20:45 +0000)]
add camv

6 years agonusb/cam: ctl message fixes
aiju [Wed, 7 Mar 2018 20:44:55 +0000 (20:44 +0000)]
nusb/cam: ctl message fixes

6 years agoadd nusb/cam
aiju [Wed, 7 Mar 2018 10:06:18 +0000 (10:06 +0000)]
add nusb/cam

6 years agousb lib: add maxpkt and ntds to Altc struct
aiju [Wed, 7 Mar 2018 10:04:27 +0000 (10:04 +0000)]
usb lib: add maxpkt and ntds to Altc struct

6 years agousbehci: catch interrupt in tsleep
aiju [Wed, 7 Mar 2018 08:45:06 +0000 (08:45 +0000)]
usbehci: catch interrupt in tsleep

6 years agousbehci: add uframes control request to return uframes one at a time
aiju [Tue, 6 Mar 2018 17:18:48 +0000 (17:18 +0000)]
usbehci: add uframes control request to return uframes one at a time

6 years agomerge
cinap_lenrek [Mon, 5 Mar 2018 05:10:56 +0000 (06:10 +0100)]
merge

6 years agousbehci: fix medium- to low quality highspeed isochronous transfers
cinap_lenrek [Mon, 5 Mar 2018 05:09:31 +0000 (06:09 +0100)]
usbehci: fix medium- to low quality highspeed isochronous transfers

everything was broken. strting with hsinit not even chaining
the itd's into a ring. followed by broken buffer pointer pages.
finally, the interrupt handler's read transaction length
calculation was completely bugged, using the *FRAME* index
to access descriptors csw[] fields and not reseting tdi->ndata
thru the loop.

minor stuff:

iso->data needs to be freed with ctlr->dmafree()

put ival in iso->ival so ctl message cannot override the endpoints
pollival and screw up deallocation.

6 years agosshfs: update qid and filename on Tcreate
aiju [Sun, 4 Mar 2018 19:52:35 +0000 (19:52 +0000)]
sshfs: update qid and filename on Tcreate

6 years agomerge
cinap_lenrek [Sun, 4 Mar 2018 05:12:37 +0000 (06:12 +0100)]
merge

6 years agoigfx: add support for T510 (thanks mycroftiv)
cinap_lenrek [Sun, 4 Mar 2018 05:10:45 +0000 (06:10 +0100)]
igfx: add support for T510 (thanks mycroftiv)

6 years agomanpages: shut up about tex (1)
khm [Wed, 28 Feb 2018 20:55:48 +0000 (12:55 -0800)]
manpages:  shut up about tex (1)

6 years agog: revert accidental change, document missing file type
glenda [Tue, 27 Feb 2018 15:08:23 +0000 (10:08 -0500)]
g: revert accidental change, document missing file type

6 years agogames/mix: fix incorrect line numbers
glenda [Tue, 27 Feb 2018 03:39:49 +0000 (22:39 -0500)]
games/mix: fix incorrect line numbers

6 years agons: remove left over vararg check pragma
cinap_lenrek [Mon, 26 Feb 2018 18:58:54 +0000 (19:58 +0100)]
ns: remove left over vararg check pragma

6 years agovmx: allow setting mac address of using ea:nnnnnnnnnnnn! prefix, use genrandom()...
cinap_lenrek [Sun, 25 Feb 2018 20:11:41 +0000 (21:11 +0100)]
vmx: allow setting mac address of using ea:nnnnnnnnnnnn! prefix, use genrandom() to generate mac globally unique mac address

6 years agodevloopback: reassign device letter from #X to #λ to avoid collision with devvmx
cinap_lenrek [Sun, 25 Feb 2018 18:06:37 +0000 (19:06 +0100)]
devloopback: reassign device letter from #X to #λ to avoid collision with devvmx

6 years agokernel: properly handle bad attach specifiers
cinap_lenrek [Sun, 25 Feb 2018 16:11:18 +0000 (17:11 +0100)]
kernel: properly handle bad attach specifiers

- only accept decimal for numeric device id's
- exclude negative device id's
- device id's out of range yield Enodev

6 years agomines: documentation and chronometric control of supernatural apparitions
aiju [Sun, 25 Feb 2018 03:38:25 +0000 (03:38 +0000)]
mines: documentation and chronometric control of supernatural apparitions

6 years agoghost in the minesweeper shell
aiju [Sun, 25 Feb 2018 02:50:24 +0000 (02:50 +0000)]
ghost in the minesweeper shell

6 years agodevether: remove (unimplemented) detach, allow device creation on attach
cinap_lenrek [Sun, 25 Feb 2018 02:42:38 +0000 (03:42 +0100)]
devether: remove (unimplemented) detach, allow device creation on attach

we allow devether to create ethernet cards on attach. this is useull
for virtual cards like the sink driver, so we can create a sink
by simply: bind -a '#l2:sink ea=112233445566' /net

the detach routine was never called, so remove it from the few drivers
that attempted to implement it.

6 years agodevip: fix crash on negative dev id on attach
cinap_lenrek [Sun, 25 Feb 2018 02:32:29 +0000 (03:32 +0100)]
devip: fix crash on negative dev id on attach

6 years agons, devproc: quote path and spec arguments for /proc/$pid/ns, namespace(6) does suppo...
cinap_lenrek [Sun, 25 Feb 2018 02:24:31 +0000 (03:24 +0100)]
ns, devproc: quote path and spec arguments for /proc/$pid/ns, namespace(6) does support quoting

6 years agogames/mines: bikeshedding
aiju [Sun, 25 Feb 2018 01:43:21 +0000 (01:43 +0000)]
games/mines: bikeshedding

6 years agofortunes, rob, rsc, theo: What's this? https://plan9.io/
stanley lieber [Wed, 21 Feb 2018 00:34:03 +0000 (19:34 -0500)]
fortunes, rob, rsc, theo: What's this? https://plan9.io/

6 years agonusb/ether: mux bridges, bring in line with devether
cinap_lenrek [Sun, 18 Feb 2018 18:56:58 +0000 (19:56 +0100)]
nusb/ether: mux bridges, bring in line with devether

6 years agodevether: mux bridges, portable netconsole
cinap_lenrek [Sun, 18 Feb 2018 18:56:01 +0000 (19:56 +0100)]
devether: mux bridges, portable netconsole

6 years agonusb: add missing header dependencies to mkfiles
cinap_lenrek [Sun, 18 Feb 2018 01:06:55 +0000 (02:06 +0100)]
nusb: add missing header dependencies to mkfiles

6 years agokernel: fix missing header dependency for ethersink.$O
cinap_lenrek [Sun, 18 Feb 2018 01:05:22 +0000 (02:05 +0100)]
kernel: fix missing header dependency for ethersink.$O

6 years agoaudiohda: add device id for x260's Intel Sunrise Point-LP. (thanks rodri)
cinap_lenrek [Fri, 16 Feb 2018 20:04:38 +0000 (21:04 +0100)]
audiohda: add device id for x260's Intel Sunrise Point-LP. (thanks rodri)

6 years agoftpfs: no caching by default, add -c flag to enable it (patch by mycroftiv)
cinap_lenrek [Wed, 14 Feb 2018 19:35:36 +0000 (20:35 +0100)]
ftpfs: no caching by default, add -c flag to enable it (patch by mycroftiv)

6 years agoif ether, then etherif.h
cinap_lenrek [Mon, 12 Feb 2018 18:05:01 +0000 (19:05 +0100)]
if ether, then etherif.h

6 years agomerge
cinap_lenrek [Mon, 12 Feb 2018 00:50:24 +0000 (01:50 +0100)]
merge

6 years agoethersink: after the experiment, the zeros get dismantled. and then destroyed.
cinap_lenrek [Mon, 12 Feb 2018 00:48:20 +0000 (01:48 +0100)]
ethersink: after the experiment, the zeros get dismantled. and then destroyed.

6 years agotwsi(3): fix wrong unicode codepoint in manpage
BurnZeZ [Sun, 11 Feb 2018 21:54:10 +0000 (21:54 +0000)]
twsi(3): fix wrong unicode codepoint in manpage

6 years agoethersink: provide promisc and multicast functions for v6, set out queue limit to...
cinap_lenrek [Sun, 11 Feb 2018 18:51:23 +0000 (19:51 +0100)]
ethersink: provide promisc and multicast functions for v6, set out queue limit to 0 on attach, add to pc64 config

6 years agokernel: move devether and wifi to port/
cinap_lenrek [Sun, 11 Feb 2018 17:08:03 +0000 (18:08 +0100)]
kernel: move devether and wifi to port/

the only architecture dependence of devether was enabling interrupts,
which is now done at the end of the driver's reset() function now.

the wifi stack and dummy ethersink also go to port/.

do the IRQ2->IRQ9 hack for pc kernels in intrenabale(), so not
every caller of intrenable() has to be aware of it.

6 years agoaijuboard bootloader: fix 10BASE-T / 100BASE-TX support
aiju [Sat, 10 Feb 2018 13:15:57 +0000 (13:15 +0000)]
aijuboard bootloader: fix 10BASE-T / 100BASE-TX support

6 years agozynq: fix 10BASE-T and 100BASE-TX support
aiju [Sat, 10 Feb 2018 01:04:05 +0000 (01:04 +0000)]
zynq: fix 10BASE-T and 100BASE-TX support

6 years agofix sort(1) bug where it incorrectly included the field separator in the comparison...
aiju [Wed, 7 Feb 2018 18:53:08 +0000 (18:53 +0000)]
fix sort(1) bug where it incorrectly included the field separator in the comparison if it was >= Runeself

6 years agofstype: make copy of first sector in /env to avoid unaligned reads on the disk (for...
cinap_lenrek [Wed, 7 Feb 2018 17:18:32 +0000 (18:18 +0100)]
fstype: make copy of first sector in /env to avoid unaligned reads on the disk (for devfs)

devfs crypto partitions do not support unaligned reads,
so we make a copy of the first in /env/block and then
slice it to find filesystem signatures.

thanks mykhal for reporting the issue.

6 years agousbxhci: fix mistake in completering()
cinap_lenrek [Wed, 7 Feb 2018 17:13:22 +0000 (18:13 +0100)]
usbxhci: fix mistake in completering()

the td index "x" was incremented twice, once in for loop
and in the body expression. so r->rp only got updated
every second completion. this is wrong, but harmless.

6 years agoupas/fs: fix imap atom quoting (thanks Piotr Kubaj)
cinap_lenrek [Mon, 5 Feb 2018 18:16:29 +0000 (19:16 +0100)]
upas/fs: fix imap atom quoting (thanks Piotr Kubaj)

6 years agoadd ptrap
aiju [Mon, 5 Feb 2018 09:38:59 +0000 (09:38 +0000)]
add ptrap

6 years agoauth/asn12rsa: also convert ASN.1 encoded public key to plan9 format
cinap_lenrek [Mon, 5 Feb 2018 02:21:51 +0000 (03:21 +0100)]
auth/asn12rsa: also convert ASN.1 encoded public key to plan9 format

6 years ago/sys/lib/dist/mkfile: fix cfg/plan9.ini dependency (only visible after binds)
cinap_lenrek [Wed, 31 Jan 2018 18:44:54 +0000 (19:44 +0100)]
/sys/lib/dist/mkfile: fix cfg/plan9.ini dependency (only visible after binds)

6 years agowebfs(4): document -d and -D flags
cinap_lenrek [Wed, 31 Jan 2018 18:09:11 +0000 (19:09 +0100)]
webfs(4): document -d and -D flags

6 years agopc64: fix kmap() and invlpg()
cinap_lenrek [Mon, 29 Jan 2018 07:26:42 +0000 (08:26 +0100)]
pc64: fix kmap() and invlpg()

flushing tlb once the index wraps arround is not enougth
as in use pte's can be speculatively loaded. so instead
use invlpg() and explicitely invalidate the tlb of the
page mapped.

this fixes wired mount cache corruption for reads approaching
2MB which is the size of the KMAP window.

invlpg() was broken, using wrong operand type.

6 years agondb/dns: cleanup
cinap_lenrek [Sun, 28 Jan 2018 21:46:48 +0000 (22:46 +0100)]
ndb/dns: cleanup

6 years agondb/dns: fix leak in myaddr(), normalize ip strings
cinap_lenrek [Sun, 28 Jan 2018 21:36:01 +0000 (22:36 +0100)]
ndb/dns: fix leak in myaddr(), normalize ip strings

remove myaddr() function and replace with myip() function
that receives binary ip address. and don't use string
comparsion for ip addresses... parse and then ipcmp().

for sanity reasons, normalize ip address strings and
reject unparsable ones. done by calling ipalookup()
with a binary ip address.

6 years agondb/cs: handle v4 only case for rudp
cinap_lenrek [Sun, 28 Jan 2018 16:58:16 +0000 (17:58 +0100)]
ndb/cs: handle v4 only case for rudp