]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
5 years agodevdraw: zero initialize DImage.dscreen pointer (vnc, drawterm)
cinap_lenrek [Sun, 19 Aug 2018 20:00:45 +0000 (22:00 +0200)]
devdraw: zero initialize DImage.dscreen pointer (vnc, drawterm)

5 years agovncs: fix mistake "screen" vs "gscreen", thanks eekee
cinap_lenrek [Fri, 17 Aug 2018 22:03:14 +0000 (00:03 +0200)]
vncs: fix mistake "screen" vs "gscreen", thanks eekee

5 years agovncv: handle [] enclosed literal ipv6 addresses in host
cinap_lenrek [Thu, 16 Aug 2018 18:34:46 +0000 (20:34 +0200)]
vncv: handle [] enclosed literal ipv6 addresses in host

5 years agoip/ipconfig: make ra6 daemon less chatty, log to /sys/log/ipconfig instead of /sys...
cinap_lenrek [Thu, 16 Aug 2018 01:54:42 +0000 (21:54 -0400)]
ip/ipconfig: make ra6 daemon less chatty, log to /sys/log/ipconfig instead of /sys/log/v6routeradv

5 years agoinst/startether: fix typo
cinap_lenrek [Wed, 15 Aug 2018 20:14:52 +0000 (22:14 +0200)]
inst/startether: fix typo

5 years agoipv6 autoconfiguration on ethernet
cinap_lenrek [Wed, 15 Aug 2018 19:39:30 +0000 (21:39 +0200)]
ipv6 autoconfiguration on ethernet

for ip autoconfiguration, setup ipv6 link local addresses
and do SLAAC in parallel to DHCP.

5 years agoip/ipconfig: simplify by combining mklladdr() into mkclientid()
cinap_lenrek [Sun, 12 Aug 2018 20:39:44 +0000 (22:39 +0200)]
ip/ipconfig: simplify by combining mklladdr() into mkclientid()

5 years agoip/ipconfig: call mklladdr() to get conf.hwa initialized for ipv6
cinap_lenrek [Sat, 11 Aug 2018 14:19:32 +0000 (16:19 +0200)]
ip/ipconfig: call mklladdr() to get conf.hwa initialized for ipv6

5 years agodevip: fix multicastarp() when ipconfig assigned the 0 address
cinap_lenrek [Sat, 11 Aug 2018 14:18:12 +0000 (16:18 +0200)]
devip: fix multicastarp() when ipconfig assigned the 0 address

sending multicast was broken when ipconfig assigned the 0
address for dhcp as they would wrongly classified as Runi.

this could happen when we do slaac and dhcp in parallel,
breaking the sending of router solicitations.

5 years agosdloop(3): import sdloop driver (thanks erik)
mischief [Fri, 10 Aug 2018 15:08:38 +0000 (08:08 -0700)]
sdloop(3): import sdloop driver (thanks erik)

5 years agovalley: call srand so that actual random phrases are used
mischief [Fri, 10 Aug 2018 14:46:13 +0000 (07:46 -0700)]
valley: call srand so that actual random phrases are used

5 years agoplan9.ini(8) iwlwifi essid/bssid misleading
23hiro [Wed, 8 Aug 2018 16:47:48 +0000 (18:47 +0200)]
plan9.ini(8) iwlwifi essid/bssid misleading

5 years agoturkey simplified timezone (thanks erkin from 9front ml)
23hiro [Wed, 8 Aug 2018 08:17:57 +0000 (10:17 +0200)]
turkey simplified timezone (thanks erkin from 9front ml)

5 years agonusb/ether: fix ethertype filtering
cinap_lenrek [Tue, 7 Aug 2018 21:46:58 +0000 (23:46 +0200)]
nusb/ether: fix ethertype filtering

5 years agomerge
cinap_lenrek [Mon, 6 Aug 2018 21:14:59 +0000 (23:14 +0200)]
merge

5 years agowifi: lilu dallas multirate
cinap_lenrek [Mon, 6 Aug 2018 21:13:23 +0000 (23:13 +0200)]
wifi: lilu dallas multirate

now handle the supported rates element properly, only
providing the intersecting set of rates that the bss
advertises and what the driver supports, putting the
basic rates first.

also avoid using usupported rates.

5 years agodevaoe: really fix unit numbering, to be 0-based
mischief [Mon, 6 Aug 2018 16:41:28 +0000 (09:41 -0700)]
devaoe: really fix unit numbering, to be 0-based

5 years agodevaoe: fix unit numbering for Qdevlinkdir
mischief [Mon, 6 Aug 2018 15:50:40 +0000 (08:50 -0700)]
devaoe: fix unit numbering for Qdevlinkdir

a side effect of 3c77cd3ae664 changed the unit ordering to start at one, so fix the condition accordingly.

5 years agoip(3): document ipifc ipv6 connection and fix delay formatting
mischief [Mon, 6 Aug 2018 15:47:07 +0000 (08:47 -0700)]
ip(3): document ipifc ipv6 connection and fix delay formatting

5 years agoacme: pass pointer to int type to avoid pointer to int cast warning
cinap_lenrek [Fri, 3 Aug 2018 14:53:50 +0000 (16:53 +0200)]
acme: pass pointer to int type to avoid pointer to int cast warning

5 years agowin: fix typo
spew [Thu, 2 Aug 2018 18:37:07 +0000 (14:37 -0400)]
win: fix typo

5 years agowin: bind the text file properly instead of a special case in "
spew [Thu, 2 Aug 2018 18:21:19 +0000 (14:21 -0400)]
win: bind the text file properly instead of a special case in "

5 years agoacme: add spacesindent mode
spew [Wed, 1 Aug 2018 15:14:59 +0000 (11:14 -0400)]
acme: add spacesindent mode

5 years agoetheriwl: add pci did for WifiLink 5300 (thans senthil)
cinap_lenrek [Tue, 31 Jul 2018 16:33:42 +0000 (18:33 +0200)]
etheriwl: add pci did for WifiLink 5300 (thans senthil)

5 years agokbdfs: ignore first 16 scancodes (number row) in kbtabctl[] for control key reverse...
cinap_lenrek [Mon, 30 Jul 2018 18:40:28 +0000 (20:40 +0200)]
kbdfs: ignore first 16 scancodes (number row) in kbtabctl[] for control key reverse mapping

5 years agovncv: implement extended DesktopSize extension, cleanup
cinap_lenrek [Mon, 30 Jul 2018 00:21:28 +0000 (02:21 +0200)]
vncv: implement extended DesktopSize extension, cleanup

5 years agodc: fix off by one in stack overflow check (thanks BurnZeZ)
cinap_lenrek [Fri, 27 Jul 2018 07:31:28 +0000 (09:31 +0200)]
dc: fix off by one in stack overflow check (thanks BurnZeZ)

BurnZeZ → Found a bug in dc(1)
BurnZeZ → Everything breaks when you fill the stack
BurnZeZ → You have stkptr which crap expects to point to an available member in Blk *stack[STKSZ];
BurnZeZ → stkend = &stack[STKSZ];
BurnZeZ → stkptr is allowed to equal stkend
BurnZeZ → So crap that expects stkptr to be pointing to an available Blk ends up dereferencing past the end of the array
BurnZeZ → term% echo `{seq 1 100} f | dc
BurnZeZ → dc 628283: suicide: sys: trap: fault read addr=0xffffe0000040a618 pc=0x204b1c

5 years agoaudiohda: support Intel Sunrise Point-LP on thinkpad X1
cinap_lenrek [Thu, 26 Jul 2018 00:48:00 +0000 (02:48 +0200)]
audiohda: support Intel Sunrise Point-LP on thinkpad X1

5 years agoadd games/dpic and games/todpic
qwx [Wed, 25 Jul 2018 03:02:46 +0000 (05:02 +0200)]
add games/dpic and games/todpic

5 years agomerge
23hiro [Tue, 24 Jul 2018 07:17:11 +0000 (09:17 +0200)]
merge

5 years agospelling
23hiro [Tue, 24 Jul 2018 07:04:50 +0000 (09:04 +0200)]
spelling

5 years agodevmouse: produce signed msec timestamp in /dev/mouse, accept unsigned on write
cinap_lenrek [Mon, 23 Jul 2018 17:29:15 +0000 (19:29 +0200)]
devmouse: produce signed msec timestamp in /dev/mouse, accept unsigned on write

5 years agolibdraw: accept unsigned msec timestamp in /dev/mouse
cinap_lenrek [Mon, 23 Jul 2018 17:25:28 +0000 (19:25 +0200)]
libdraw: accept unsigned msec timestamp in /dev/mouse

5 years agopc, pc64: look for "RSD PTR " in ACPI reserved memory region from e820 map
cinap_lenrek [Sun, 22 Jul 2018 19:00:20 +0000 (21:00 +0200)]
pc, pc64: look for "RSD PTR " in ACPI reserved memory region from e820 map

nobody passes us the "RSD PTR " address when doing multiboot/kexec
on UEFI systems. so we search for it manually in the ACPI reserved
area as indicated in the e820 memory map.

5 years agodmid: better fnumber calculation and fix fine tuning for 2nd voice
qwx [Sat, 21 Jul 2018 03:05:53 +0000 (05:05 +0200)]
dmid: better fnumber calculation and fix fine tuning for 2nd voice

5 years agossh: fix nil dereference when TERM isnt set and -r is requested
cinap_lenrek [Wed, 18 Jul 2018 07:48:45 +0000 (09:48 +0200)]
ssh: fix nil dereference when TERM isnt set and -r is requested

5 years agomerge
cinap_lenrek [Mon, 16 Jul 2018 21:55:45 +0000 (23:55 +0200)]
merge

5 years agondb/dns: fix delegation with norecursion (-R flag)
cinap_lenrek [Mon, 16 Jul 2018 21:54:23 +0000 (23:54 +0200)]
ndb/dns: fix delegation with norecursion (-R flag)

when the question zone is in a delegated area, we still
need to provide the nameservers.

5 years agomerge
cinap_lenrek [Sun, 15 Jul 2018 23:36:35 +0000 (01:36 +0200)]
merge

5 years agodevmnt: make sure auth chan is on said conection in mntattach()
cinap_lenrek [Sun, 15 Jul 2018 23:35:02 +0000 (01:35 +0200)]
devmnt: make sure auth chan is on said conection in mntattach()

5 years agodoom: use wadfs to expose music lumps
qwx [Sun, 15 Jul 2018 04:31:45 +0000 (06:31 +0200)]
doom: use wadfs to expose music lumps

launch wadfs after detecting main wad, exposing GENMIDI and music lumps
under /mnt/wad.  /bin/dmus can then use them directly, and wadfs doesn't
need to be started manually.

5 years agocwfs -a option misleading
23hiro [Sat, 14 Jul 2018 18:40:26 +0000 (20:40 +0200)]
cwfs -a option misleading

5 years agobootrc: write fatal error message to fd2
cinap_lenrek [Sat, 14 Jul 2018 15:20:49 +0000 (17:20 +0200)]
bootrc: write fatal error message to fd2

5 years agoscreenrc: bind '#v' when not already done (for cpu servers)
cinap_lenrek [Sat, 14 Jul 2018 15:19:41 +0000 (17:19 +0200)]
screenrc: bind '#v' when not already done (for cpu servers)

5 years agondb/dnsgetip: report errors when dns resolution fails
mischief [Fri, 13 Jul 2018 20:44:57 +0000 (20:44 +0000)]
ndb/dnsgetip: report errors when dns resolution fails

5 years agoadd games/dmid and games/opl3
qwx [Thu, 12 Jul 2018 07:33:33 +0000 (09:33 +0200)]
add games/dmid and games/opl3

5 years agowadfs(4): fix typo
qwx [Thu, 12 Jul 2018 07:25:04 +0000 (09:25 +0200)]
wadfs(4): fix typo

5 years agopc64: update headers to match pc
aiju [Wed, 11 Jul 2018 15:05:03 +0000 (16:05 +0100)]
pc64: update headers to match pc

5 years agopc: fix ugly and partially broken switch() statement
aiju [Wed, 11 Jul 2018 14:12:24 +0000 (15:12 +0100)]
pc: fix ugly and partially broken switch() statement

5 years agopc kernel: get rid of ugly and partially broken cpuid macros
aiju [Wed, 11 Jul 2018 13:50:22 +0000 (14:50 +0100)]
pc kernel: get rid of ugly and partially broken cpuid macros

5 years agoasaudit: make error more explicit
aiju [Wed, 11 Jul 2018 11:23:48 +0000 (12:23 +0100)]
asaudit: make error more explicit

5 years agoauthsrv: log message when no AES key is found for pak
cinap_lenrek [Wed, 11 Jul 2018 08:17:04 +0000 (10:17 +0200)]
authsrv: log message when no AES key is found for pak

5 years agomidi: properly skip sysex messages
qwx [Tue, 10 Jul 2018 21:26:17 +0000 (23:26 +0200)]
midi: properly skip sysex messages

this fixes playing any midi files containing such messages
example: prince of persia midis from vgmpf wiki

5 years agondb/cs: add -6 flag for v6 only lookups and "ipv4" control message to toggle v4 lookups.
cinap_lenrek [Tue, 10 Jul 2018 17:57:55 +0000 (19:57 +0200)]
ndb/cs: add -6 flag for v6 only lookups and "ipv4" control message to toggle v4 lookups.

5 years agodevip: make il connect fail quickly when theres no route
cinap_lenrek [Tue, 10 Jul 2018 07:11:19 +0000 (09:11 +0200)]
devip: make il connect fail quickly when theres no route

5 years agodevip: don't pad the tag for routing commands (fixes removing routes with < 4 charact...
cinap_lenrek [Sun, 8 Jul 2018 23:32:21 +0000 (01:32 +0200)]
devip: don't pad the tag for routing commands (fixes removing routes with < 4 character tags)

5 years agoupas/smtp: use current login id in absence of -u option (as per man page)
Alex Musolino [Sun, 8 Jul 2018 02:48:06 +0000 (12:18 +0930)]
upas/smtp: use current login id in absence of -u option (as per man page)

5 years agoupas/smtp: allow remote port to be set to something other than smtp (e.g. ssmtp)
Alex Musolino [Sun, 8 Jul 2018 02:35:42 +0000 (12:05 +0930)]
upas/smtp: allow remote port to be set to something other than smtp (e.g. ssmtp)

5 years agokbdfs: handle mouse control (Kmouse, Kshift button swap) in parallel, bring back...
cinap_lenrek [Sat, 7 Jul 2018 19:10:38 +0000 (21:10 +0200)]
kbdfs: handle mouse control (Kmouse, Kshift button swap) in parallel, bring back ^X form handling

5 years agovncs: silence devdraw debug prints
cinap_lenrek [Sat, 7 Jul 2018 15:11:51 +0000 (17:11 +0200)]
vncs: silence devdraw debug prints

5 years agoape: fix MAXSIG
spew [Tue, 3 Jul 2018 18:41:14 +0000 (14:41 -0400)]
ape: fix MAXSIG

5 years agoape: remove getitimer setitimer implemenations
spew [Tue, 3 Jul 2018 16:28:05 +0000 (12:28 -0400)]
ape: remove getitimer setitimer implemenations

5 years agogames/mines: add missing checks for UseGhost
aiju [Tue, 3 Jul 2018 07:22:19 +0000 (07:22 +0000)]
games/mines: add missing checks for UseGhost

6 years agoape: improve setitimer
spew [Mon, 2 Jul 2018 03:35:23 +0000 (23:35 -0400)]
ape: improve setitimer

6 years agoape: an implemenation of getitimer setitimer
spew [Sun, 1 Jul 2018 22:48:12 +0000 (18:48 -0400)]
ape: an implemenation of getitimer setitimer

6 years agohgfs(4): fix typo (thanks piroko)
cinap_lenrek [Thu, 28 Jun 2018 18:14:43 +0000 (20:14 +0200)]
hgfs(4): fix typo (thanks piroko)

6 years agossh: wait for remote channel close (thanks piroko)
cinap_lenrek [Thu, 28 Jun 2018 18:10:11 +0000 (20:10 +0200)]
ssh: wait for remote channel close (thanks piroko)

6 years agoPersist 'k' command in mothra and add matching -k flag (thanks piroko)
23hiro [Wed, 27 Jun 2018 17:20:28 +0000 (19:20 +0200)]
Persist 'k' command in mothra and add matching -k flag (thanks piroko)

"I sometimes find myself on either slow or data-capped network links where downloading images isn't ideal. Attached is a simple patch to mothra that changes the 'k' command to not only remove already-downloaded images from a page, but also toggle a state such that mothra won't attempt to download images on future visited sites until 'k' is toggled again. This also adds a '-k' flag to mothra which enables the flag at startup." --Jeremy O'Brien<neutral@fastmail.com> on 9fans

6 years agondb/dns: fix encoding of srv record target
cinap_lenrek [Tue, 26 Jun 2018 17:30:52 +0000 (19:30 +0200)]
ndb/dns: fix encoding of srv record target

the target has to be encoded as a domain name (the individual
name components as separate labels followed by . (empty) label),
not as a literal string.

to disable compression, pass nil dictionary to pname().

6 years agomus: fix note volume and channel selection; simplify
qwx [Tue, 26 Jun 2018 08:35:23 +0000 (10:35 +0200)]
mus: fix note volume and channel selection; simplify

- fix overwriting channel 10 with channel 9
- fix using channel volume instead of last volume when setting note
  (fixes d_doom and others)
- remove useless state

6 years ago/sys/lib/dist/ndb/common: synchronize root servers and link to root hints source
mischief [Mon, 25 Jun 2018 22:58:52 +0000 (22:58 +0000)]
/sys/lib/dist/ndb/common: synchronize root servers and link to root hints source

6 years agomerge
cinap_lenrek [Sun, 24 Jun 2018 19:54:21 +0000 (21:54 +0200)]
merge

6 years agowebfs: don't handle unknown status codes as continuations, reset status when handling...
cinap_lenrek [Sun, 24 Jun 2018 19:52:17 +0000 (21:52 +0200)]
webfs: don't handle unknown status codes as continuations, reset status when handling continuation to avoid infinite loop

6 years agogba: handle 8bit writes to vram
qwx [Fri, 22 Jun 2018 12:49:18 +0000 (14:49 +0200)]
gba: handle 8bit writes to vram

ignore 8bit writes to obj and oam, and duplicate bits for bg and palette
memory, as per gbatek.

thanks aiju for helping with the implementation.

6 years agostats(8): document -z flag (thanks xcko)
mischief [Fri, 22 Jun 2018 02:02:46 +0000 (02:02 +0000)]
stats(8): document -z flag (thanks xcko)

6 years agoape: add strnlen
spew [Thu, 21 Jun 2018 15:56:37 +0000 (11:56 -0400)]
ape: add strnlen

6 years agoape: provide bogus chroot implementation
spew [Thu, 21 Jun 2018 02:19:37 +0000 (22:19 -0400)]
ape: provide bogus chroot implementation

6 years agodevip: fix flush, copy tag when replacing route entry
cinap_lenrek [Tue, 19 Jun 2018 19:17:15 +0000 (21:17 +0200)]
devip: fix flush, copy tag when replacing route entry

6 years agoplay(1): handle file names containing consecutive spaces
Alex Musolino [Mon, 18 Jun 2018 03:41:03 +0000 (13:11 +0930)]
play(1): handle file names containing consecutive spaces

6 years agoape: add some common fields for stat, grp and pwd
spew [Sun, 17 Jun 2018 21:38:00 +0000 (17:38 -0400)]
ape: add some common fields for stat, grp and pwd

6 years agozunq: add sdram driver
cinap_lenrek [Thu, 14 Jun 2018 19:54:42 +0000 (21:54 +0200)]
zunq: add sdram driver

6 years agoudp: fix udp checksum
cinap_lenrek [Thu, 14 Jun 2018 18:48:21 +0000 (20:48 +0200)]
udp: fix udp checksum

we did not apply the special case to store 0xFFFF (-0)
in the checksum field when the checksum calculation
returned zero. we survived this for v4 as RFC768 states:

> If the computed checksum is zero, it is transmitted as
> all ones (the equivalent in one's complement arithmetic).
>
> An all zero transmitted checksum value means that the
> transmitter generated no checksum (for debuging or for
> higher level protocols that don't care).

for ipv6 however, the checksum is not optional and receivers
would drop packets with a zero checksum.

6 years ago9pc, 9pc64: make mapalloc() and mapfree() static in memory.c
cinap_lenrek [Thu, 14 Jun 2018 18:22:34 +0000 (20:22 +0200)]
9pc, 9pc64: make mapalloc() and mapfree() static in memory.c

6 years agomerge
cinap_lenrek [Wed, 13 Jun 2018 23:12:46 +0000 (01:12 +0200)]
merge

6 years agostats: fix crash with -Y fag when window too narrow
cinap_lenrek [Wed, 13 Jun 2018 23:10:52 +0000 (01:10 +0200)]
stats: fix crash with -Y fag when window too narrow

6 years agomerge
cinap_lenrek [Wed, 13 Jun 2018 22:08:46 +0000 (00:08 +0200)]
merge

6 years agodevip: don't send arp requests from null address
cinap_lenrek [Wed, 13 Jun 2018 22:07:45 +0000 (00:07 +0200)]
devip: don't send arp requests from null address

during dhcp, ipconfig assigns the null address :: which makes
ipforme() return Runi for any destination, which can trigger
arp resolution when we attempt to reply. so have v4local()
skip the null address and have sendarp() check the return
status of v4local(), avoing the spurious arp requests.

6 years agodevip: reject incompatible multicast/interface ip address pairs for ipifcaddmulti()
cinap_lenrek [Wed, 13 Jun 2018 16:58:17 +0000 (18:58 +0200)]
devip: reject incompatible multicast/interface ip address pairs for ipifcaddmulti()

6 years agosysinfo: minor formatting fix
aiju [Wed, 13 Jun 2018 15:05:31 +0000 (16:05 +0100)]
sysinfo: minor formatting fix

6 years agoemulators ui: don't drink and code
qwx [Wed, 13 Jun 2018 12:14:25 +0000 (14:14 +0200)]
emulators ui: don't drink and code

6 years agoemulators ui: add option for fixed factor scaling and bound scale vertically
qwx [Wed, 13 Jun 2018 12:05:19 +0000 (14:05 +0200)]
emulators ui: add option for fixed factor scaling and bound scale vertically

6 years agostats: read cputemp as C, set scale max to 100 C
mischief [Wed, 13 Jun 2018 11:59:14 +0000 (11:59 +0000)]
stats: read cputemp as C, set scale max to 100 C

6 years agogames/gb: attempt at fixing sprite priority
aiju [Wed, 13 Jun 2018 09:52:41 +0000 (09:52 +0000)]
games/gb: attempt at fixing sprite priority

6 years agogames/gb: fix mbc5 register addressing (fixes warioland3 gamebreaking bug)
aiju [Wed, 13 Jun 2018 09:26:55 +0000 (09:26 +0000)]
games/gb: fix mbc5 register addressing (fixes warioland3 gamebreaking bug)

6 years agodevip: fix missing wunlock() for "ipifc not yet bound to device" case, don't create...
cinap_lenrek [Tue, 12 Jun 2018 18:31:39 +0000 (20:31 +0200)]
devip: fix missing wunlock() for "ipifc not yet bound to device" case, don't create multicast entry on error

6 years agoip/dhcp6d: don't drink and code
cinap_lenrek [Tue, 12 Jun 2018 17:50:04 +0000 (19:50 +0200)]
ip/dhcp6d: don't drink and code

6 years agoip/dhcp6d: only announce all-dhcp-servers multicast address on interface with link...
cinap_lenrek [Tue, 12 Jun 2018 17:36:31 +0000 (19:36 +0200)]
ip/dhcp6d: only announce all-dhcp-servers multicast address on interface with link-local address on it

6 years ago/sys/src/mkfile: add libttf
cinap_lenrek [Tue, 12 Jun 2018 17:29:38 +0000 (19:29 +0200)]
/sys/src/mkfile: add libttf

6 years agoupas/nedmail: marshal(1) options -n and -8 are mutually exclusive
Alex Musolino [Tue, 12 Jun 2018 10:34:16 +0000 (20:04 +0930)]
upas/nedmail: marshal(1) options -n and -8 are mutually exclusive

6 years agoip/dhcp6d: ignore short and from non-local source packets
cinap_lenrek [Mon, 11 Jun 2018 17:32:44 +0000 (19:32 +0200)]
ip/dhcp6d: ignore short and from non-local source packets