]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
5 years agosshnet: fix write count for ctl message writes
cinap_lenrek [Tue, 2 Apr 2019 15:32:34 +0000 (17:32 +0200)]
sshnet: fix write count for ctl message writes

5 years agosshnet: actually make sure ssh established connection before exiting main proc
cinap_lenrek [Tue, 2 Apr 2019 15:28:56 +0000 (17:28 +0200)]
sshnet: actually make sure ssh established connection before exiting main proc

this fixes password prompts and handles errors properly.

5 years agosshnet(4): add documentation
cinap_lenrek [Tue, 2 Apr 2019 14:40:14 +0000 (16:40 +0200)]
sshnet(4): add documentation

5 years agosshnet: bring back sshnet using ssh(1) mux mode
cinap_lenrek [Tue, 2 Apr 2019 14:23:01 +0000 (16:23 +0200)]
sshnet: bring back sshnet using ssh(1) mux mode

this is a port of the original ssh1 sshnet to our
ssh2 client using mux mode.

5 years agossh: add experimental mux mode
cinap_lenrek [Tue, 2 Apr 2019 09:18:50 +0000 (11:18 +0200)]
ssh: add experimental mux mode

in mux mode, ssh relays raw MSG_CHANNEL_*
messages on standard input and output while
still handling authentication and key exchange
internally.

the intend is to use the mux mode to implement
something like the old sshnet ontop of ssh.

5 years agomerge
cinap_lenrek [Tue, 2 Apr 2019 07:05:01 +0000 (09:05 +0200)]
merge

5 years agossh: implement -W option for making remote tcp connections
cinap_lenrek [Tue, 2 Apr 2019 07:03:35 +0000 (09:03 +0200)]
ssh: implement -W option for making remote tcp connections

5 years agomerge
Alex Musolino [Mon, 1 Apr 2019 12:44:14 +0000 (23:14 +1030)]
merge

5 years agofix DST begin/end timestamps for South Australia
Alex Musolino [Mon, 1 Apr 2019 12:25:49 +0000 (22:55 +1030)]
fix DST begin/end timestamps for South Australia

5 years agowalk: remove unused depth argument from dofile()
BurnZeZ [Sat, 30 Mar 2019 15:10:36 +0000 (15:10 +0000)]
walk: remove unused depth argument from dofile()

5 years agobootrc: simplify if statement
BurnZeZ [Sat, 30 Mar 2019 15:09:00 +0000 (15:09 +0000)]
bootrc: simplify if statement

5 years agodtracy: avoid dmachlock() race
cinap_lenrek [Sat, 30 Mar 2019 08:17:46 +0000 (09:17 +0100)]
dtracy: avoid dmachlock() race

between being commited to a machno and having acquired the lock, the
scheduler could come in an schedule us on a different processor. the
solution is to have dtmachlock() take a special -1 argument to mean
"current mach" and return the actual mach number after the lock has
been acquired and interrupts being disabled.

5 years agodist/mkfile: aux/stub -d /n/src9/usr to avoid overbinding /usr in case /n/src9 an...
cinap_lenrek [Sat, 30 Mar 2019 04:50:14 +0000 (05:50 +0100)]
dist/mkfile: aux/stub -d /n/src9/usr to avoid overbinding /usr in case /n/src9 an / alias

when /n/src9 is an alias for / (bind / /n/src9), then the bind
from /sys/lib/dist/usr on /n/src9/usr would also overbind
/usr and potentially make the build target file inaccessible.

the solution is to run aux/stub -d /n/src9/usr.

this works as aux/stub mounts itself on /n/src9, so the bind
for /n/src9/usr will not override /usr in the root filesystem
but the stub directory from aux/stub.

5 years ago5c: dont substibute (destination) registers contained in MOVM reglist
cinap_lenrek [Fri, 29 Mar 2019 05:35:41 +0000 (06:35 +0100)]
5c: dont substibute (destination) registers contained in MOVM reglist

this fixes the miscompilation of 6l with 5c resulting in bogus
vlong -> long conversion at the top of asmandsz():

asmandsz 0x0000aec4 MOVW.W R14,#-0x2c(R13)
asmandsz+0x4 0x0000aec8 MOVW rex+8(FP),R5
asmandsz+0x8 0x0000aecc MOVW $andptr-SB(SB),R7
asmandsz+0xc 0x0000aed0 MOVW R0,R6
asmandsz+0x10 0x0000aed4 AND $#0x44,R5,R8
asmandsz+0x14 0x0000aed8 MOVW R8,rex+8(FP)
asmandsz+0x18 0x0000aedc MOVW R0,R4
asmandsz+0x1c 0x0000aee0 MOVM.IA (R0),[R1,R3] <- R1 used here
asmandsz+0x20 0x0000aee4 MOVW R8,v-4(SP) <- substituted by R8

5 years agomerge
cinap_lenrek [Wed, 27 Mar 2019 13:46:14 +0000 (14:46 +0100)]
merge

5 years agoinst/startether: skip ipv6 auto configuration when nora6 was specified
cinap_lenrek [Wed, 27 Mar 2019 13:45:08 +0000 (14:45 +0100)]
inst/startether: skip ipv6 auto configuration when nora6 was specified

5 years agomerge
cinap_lenrek [Wed, 27 Mar 2019 13:33:15 +0000 (14:33 +0100)]
merge

5 years agoplan9.ini(8): add USB section, documenting various usb options
cinap_lenrek [Wed, 27 Mar 2019 13:31:45 +0000 (14:31 +0100)]
plan9.ini(8): add USB section, documenting various usb options

5 years agobootrc: handle automatic ip configuration on gbe media
cinap_lenrek [Wed, 27 Mar 2019 13:17:51 +0000 (14:17 +0100)]
bootrc: handle automatic ip configuration on gbe media

5 years agoplan9.ini: add nora6= option to disable automatic ipv6 configuration
cinap_lenrek [Wed, 27 Mar 2019 13:11:25 +0000 (14:11 +0100)]
plan9.ini: add nora6= option to disable automatic ipv6 configuration

5 years agoadded walk(1)
BurnZeZ [Mon, 25 Mar 2019 23:10:02 +0000 (23:10 +0000)]
added walk(1)

5 years agoupas/fs: release mailbox syncing lock after encountering error
cinap_lenrek [Sat, 23 Mar 2019 04:47:17 +0000 (05:47 +0100)]
upas/fs: release mailbox syncing lock after encountering error

5 years agowebfs: bracket literal ipv6 host in "Host:" header
cinap_lenrek [Fri, 22 Mar 2019 23:49:07 +0000 (00:49 +0100)]
webfs: bracket literal ipv6 host in "Host:" header

5 years agonusbrc: detect "keyboardio model 01", appears as multifuction device with IAD csp...
cinap_lenrek [Thu, 21 Mar 2019 01:14:40 +0000 (02:14 +0100)]
nusbrc: detect "keyboardio model 01", appears as multifuction device with IAD csp(0102EF) (thanks sam-d)

5 years agonusb/kb: fix continuous scrollwheel delta not being reported (thanks sam-d)
cinap_lenrek [Thu, 21 Mar 2019 00:27:28 +0000 (01:27 +0100)]
nusb/kb: fix continuous scrollwheel delta not being reported (thanks sam-d)

5 years agomerge
cinap_lenrek [Mon, 18 Mar 2019 06:16:37 +0000 (07:16 +0100)]
merge

5 years agopython: clean and nuke pgen and libpython.a for all $CPUS
cinap_lenrek [Mon, 18 Mar 2019 06:15:09 +0000 (07:15 +0100)]
python: clean and nuke pgen and libpython.a for all $CPUS

5 years agofortunes: Open source may not be safe if it has no super excellent moderator.
stanley lieber [Mon, 18 Mar 2019 03:13:27 +0000 (23:13 -0400)]
fortunes: Open source may not be safe if it has no super excellent moderator.

5 years agodtracy(1): fix print(2) reference
cinap_lenrek [Mon, 18 Mar 2019 01:41:15 +0000 (02:41 +0100)]
dtracy(1): fix print(2) reference

5 years agopython: remove /$objtype/lib/ape/libpython.a, track graminit.h dependencies, remove...
cinap_lenrek [Sun, 17 Mar 2019 22:52:07 +0000 (23:52 +0100)]
python: remove /$objtype/lib/ape/libpython.a, track graminit.h dependencies, remove graminit.c

5 years agoip/ipconfig: use defaults for loopback
cinap_lenrek [Sun, 17 Mar 2019 04:44:55 +0000 (05:44 +0100)]
ip/ipconfig: use defaults for loopback

- do not write /net/ndb for loopback medium unless -p is specified
- use defmask() instead of hardcoded /64 for v6 to get correct /128 mask for ::1
- only do duplicate address detection on ethernet

5 years agoip/ipconfig: use ewrite() to enable routing command for sendra
cinap_lenrek [Sun, 17 Mar 2019 03:07:30 +0000 (04:07 +0100)]
ip/ipconfig: use ewrite() to enable routing command for sendra

5 years agorootstub: create arm and mips directories in /usr/glenda/bin (tanks timclassic)
cinap_lenrek [Sun, 17 Mar 2019 01:43:49 +0000 (02:43 +0100)]
rootstub: create arm and mips directories in /usr/glenda/bin (tanks timclassic)

5 years agoip/tinc: 4096 bit RSA, (passive) pmtu discovery, fix udpfd close() race, cleanup
cinap_lenrek [Sun, 10 Mar 2019 18:07:58 +0000 (19:07 +0100)]
ip/tinc: 4096 bit RSA, (passive) pmtu discovery, fix udpfd close() race, cleanup

- increase buffer size to support up to 4096 bit RSA keys
- handle PMTUDiscovery option and respond to pmtu probes
- handle port in Address option
- wlock(&netlk) before closing udpfd to sync with writers
- move default subnet handling out of gethost()

5 years agolibmemdraw: remove static Point p00 and use ZP instead
cinap_lenrek [Sat, 9 Mar 2019 16:36:19 +0000 (17:36 +0100)]
libmemdraw: remove static Point p00 and use ZP instead

5 years agolibmemdraw: handle memarc() phi == 0 and phi <= -360, keep alpha in bounds
cinap_lenrek [Sat, 9 Mar 2019 16:34:22 +0000 (17:34 +0100)]
libmemdraw: handle memarc() phi == 0 and phi <= -360, keep alpha in bounds

5 years agomerge
cinap_lenrek [Thu, 7 Mar 2019 21:41:42 +0000 (22:41 +0100)]
merge

5 years agodevip: ignore the evil bit in fragment info field
cinap_lenrek [Thu, 7 Mar 2019 21:39:50 +0000 (22:39 +0100)]
devip: ignore the evil bit in fragment info field

using ~IP_DF mask to select offset and "more fragments" bits
includes the evil bit 15. so instead define a constant IP_FO
for the fragment offset bits and use (IP_MF|IP_FO). that way
the evil bit gets ignored and doesnt cause any useless calls
to ipreassemble().

5 years agomach(2): fix byteswapping function signatures
mischief [Thu, 7 Mar 2019 03:10:58 +0000 (19:10 -0800)]
mach(2): fix byteswapping function signatures

5 years agovmx: check for draw initialization errors
mischief [Thu, 7 Mar 2019 03:10:48 +0000 (19:10 -0800)]
vmx: check for draw initialization errors

5 years agodevip: ignore icmp advise about laggard fragments
cinap_lenrek [Thu, 7 Mar 2019 00:25:11 +0000 (01:25 +0100)]
devip: ignore icmp advise about laggard fragments

icmp has to advise protocols about the first
fragment only. all other fragments should be
ignored.

5 years agovgadb: add t43p 1600x1200 panel entry
qwx [Mon, 4 Mar 2019 20:38:50 +0000 (21:38 +0100)]
vgadb: add t43p 1600x1200 panel entry

5 years agoigfx: add support for 915gm
qwx [Mon, 4 Mar 2019 20:37:52 +0000 (21:37 +0100)]
igfx: add support for 915gm

tested on a t43 with igfx and a 1600x1200 t43p screen
what works: lvds, blanking
what doesn't: hwgc (not visible), snarfing edid
untested: vga

based on realemu traces.

5 years agoip/tinc: honor TcpOnly and IndirectData settings, script support, prefer incoming...
cinap_lenrek [Mon, 4 Mar 2019 19:29:33 +0000 (20:29 +0100)]
ip/tinc: honor TcpOnly and IndirectData settings, script support, prefer incoming udp connections

only try listen/dial on udp when IndirectData/TcpOnly is not
enabled.

add support for scipts:
 host-up
 host-down
 tinc-up
 tinc-down
 subnet-up
 subnet-down

when dialing udp connection, only switch when there is no
other udp connection active. when we receive an authenticated
message, we switch to that connection immidiately.

5 years agodevip: ignore reserved fragment offset bits
cinap_lenrek [Mon, 4 Mar 2019 11:07:40 +0000 (12:07 +0100)]
devip: ignore reserved fragment offset bits

5 years agodevip: handle packet too big advise for icmp6, remove fragment header
cinap_lenrek [Mon, 4 Mar 2019 02:13:29 +0000 (03:13 +0100)]
devip: handle packet too big advise for icmp6, remove fragment header

5 years agodevip: use common code in icmp for handling advise
cinap_lenrek [Mon, 4 Mar 2019 02:09:39 +0000 (03:09 +0100)]
devip: use common code in icmp for handling advise

5 years agodevip: zero fragment offset after reassembly, remove tos magic, cleanup
cinap_lenrek [Mon, 4 Mar 2019 02:08:27 +0000 (03:08 +0100)]
devip: zero fragment offset after reassembly, remove tos magic, cleanup

5 years agodevip: fix fragment forwarding
cinap_lenrek [Mon, 4 Mar 2019 02:05:30 +0000 (03:05 +0100)]
devip: fix fragment forwarding

unfraglen() had the side effect that it would always copy the
nexthdr field from the fragment header to the previous nexthdr
field. this is fine when we reassemble packets but breaks
fragments that we want to just forward unchanged.

5 years agodevip: simplify ip reassembly functions, getting rid of Ipfrag.hlen
cinap_lenrek [Sun, 3 Mar 2019 17:56:18 +0000 (18:56 +0100)]
devip: simplify ip reassembly functions, getting rid of Ipfrag.hlen

given that we now keep the block size consistent with the
ip packet size, the variable header part of the ip packet
is just: BLEN(bp) - fp->flen == fp->hlen.

fix bug in ip6reassemble() in the non-fragmented case:
reload ih after ip header was moved before writing ih->ploadlen.

use concatbloc() instead of pullupblock().

5 years agodevip: fix block list handling for icmp/icmp6, use proper MinAdvise for icmp6
cinap_lenrek [Sun, 3 Mar 2019 08:01:23 +0000 (09:01 +0100)]
devip: fix block list handling for icmp/icmp6, use proper MinAdvise for icmp6

5 years agoqio: handle common case in trimblock()
cinap_lenrek [Sun, 3 Mar 2019 04:26:09 +0000 (05:26 +0100)]
qio: handle common case in trimblock()

5 years agodevip: fix ip fragmentation handling issues with header options
cinap_lenrek [Sun, 3 Mar 2019 04:25:00 +0000 (05:25 +0100)]
devip: fix ip fragmentation handling issues with header options

some protocols assume that Ip4hdr.length[] and Ip6hdr.ploadlen[]
are valid and not out of range within the block but this has
not been verified. also, the ipv4 and ipv6 headers can have variable
length options, which was not considered in the fragmentation and
reassembly code.

to make this sane, ipiput4() and ipiput6() now verify that everything
is in range and trims to block to the expected size before it does
any further processing. now blocklen() and Ip4hdr.length[] are conistent.

ipoput4() and ipoput6() are simpler now, as they can rely on
blocklen() only, not having a special routing case.

ip fragmentation reassembly has to consider that fragments could
arrive with different ip header options, so we store the header+option
size in new Ipfrag.hlen field.

unfraglen() has to make sure not to run past the buffer, and hadle
the case when it encounters multiple fragment headers.

5 years agolib9p: fix zero msize abort() due to unknown version (thanks kivik)
cinap_lenrek [Fri, 1 Mar 2019 00:43:55 +0000 (01:43 +0100)]
lib9p: fix zero msize abort() due to unknown version (thanks kivik)

kivik wrote:

I've found a nasty bug in lib9p handling of Tversion
messages, where an invalid version string in the request
leads to servers abort()ing the spaceship.

To reproduce:
; ramfs -S ram
; aux/9pcon /srv/ram
Tversion ~0 DIE

The issue lies in sversion() where in case an invalid
version string is received we respond right away with
ofcall.version="unknown"; however, we fail to set the
ofcall.msize, which at this point is cleared to 0.  This
causes the convS2M call in respond() to fail and abort being
called.

5 years agolibip: move optimized 386 assembly version of ptclbsum() from kernel to libip
cinap_lenrek [Wed, 27 Feb 2019 17:29:08 +0000 (18:29 +0100)]
libip: move optimized 386 assembly version of ptclbsum() from kernel to libip

5 years agokernel: remove ptclbsum dependencies from configs
cinap_lenrek [Wed, 27 Feb 2019 07:47:17 +0000 (08:47 +0100)]
kernel: remove ptclbsum dependencies from configs

5 years agopi, pi2: remove ptclbsum dependency from config
cinap_lenrek [Wed, 27 Feb 2019 07:38:19 +0000 (08:38 +0100)]
pi, pi2: remove ptclbsum dependency from config

5 years agocwfs: fix %.*s format in cmd_printconf()
cinap_lenrek [Mon, 25 Feb 2019 03:36:37 +0000 (04:36 +0100)]
cwfs: fix %.*s format in cmd_printconf()

5 years agopc, pc64: fix %.*s format in multibootargs
cinap_lenrek [Mon, 25 Feb 2019 03:25:36 +0000 (04:25 +0100)]
pc, pc64: fix %.*s format in multibootargs

5 years agowifi: fix %.*s format in wifictl
cinap_lenrek [Mon, 25 Feb 2019 03:22:03 +0000 (04:22 +0100)]
wifi: fix %.*s format in wifictl

5 years agoabaco: fix %.*s format in findctype()
cinap_lenrek [Mon, 25 Feb 2019 03:20:43 +0000 (04:20 +0100)]
abaco: fix %.*s format in findctype()

5 years agoatazz: fix %.*s format in special command processing
cinap_lenrek [Mon, 25 Feb 2019 03:20:00 +0000 (04:20 +0100)]
atazz: fix %.*s format in special command processing

5 years agoaux/depend: fix %.*s format in path concatenation
cinap_lenrek [Mon, 25 Feb 2019 03:18:30 +0000 (04:18 +0100)]
aux/depend: fix %.*s format in path concatenation

5 years agoaux/statusmsg: fix %.*s format
cinap_lenrek [Mon, 25 Feb 2019 03:17:19 +0000 (04:17 +0100)]
aux/statusmsg: fix %.*s format

5 years agoaux/wpa: fix %.*s format in debug prints
cinap_lenrek [Mon, 25 Feb 2019 03:16:48 +0000 (04:16 +0100)]
aux/wpa: fix %.*s format in debug prints

5 years agocc: fix %.*s format usage in lexer "token too long" error
cinap_lenrek [Mon, 25 Feb 2019 03:15:43 +0000 (04:15 +0100)]
cc: fix %.*s format usage in lexer "token too long" error

5 years agohgfs: fix %.*s usage in walk
cinap_lenrek [Mon, 25 Feb 2019 03:08:13 +0000 (04:08 +0100)]
hgfs: fix %.*s usage in walk

5 years agoip/cifsd: fix %.*s format xdirflush() path
cinap_lenrek [Mon, 25 Feb 2019 02:53:09 +0000 (03:53 +0100)]
ip/cifsd: fix %.*s format xdirflush() path

5 years agoip/ppp: fix %.*s format in debug print
cinap_lenrek [Mon, 25 Feb 2019 02:52:05 +0000 (03:52 +0100)]
ip/ppp: fix %.*s format in debug print

5 years agoip/pppoe: fix %.*s format in debug prints
cinap_lenrek [Mon, 25 Feb 2019 02:51:19 +0000 (03:51 +0100)]
ip/pppoe: fix %.*s format in debug prints

5 years agoip/socksd: fix %.*s format in dialstring
cinap_lenrek [Mon, 25 Feb 2019 02:50:14 +0000 (03:50 +0100)]
ip/socksd: fix %.*s format in dialstring

5 years agoip/tftpd: fix %.*s format for homedir path
cinap_lenrek [Mon, 25 Feb 2019 02:49:17 +0000 (03:49 +0100)]
ip/tftpd: fix %.*s format for homedir path

5 years agoip/torrent: fix %.*s format in dialstring
cinap_lenrek [Mon, 25 Feb 2019 02:48:12 +0000 (03:48 +0100)]
ip/torrent: fix %.*s format in dialstring

5 years agolibpanel: fix %.*s format in pl_snarfentry()
cinap_lenrek [Mon, 25 Feb 2019 02:45:49 +0000 (03:45 +0100)]
libpanel: fix %.*s format in pl_snarfentry()

5 years agonusb/audio: fix %.*s format usage
cinap_lenrek [Mon, 25 Feb 2019 02:41:10 +0000 (03:41 +0100)]
nusb/audio: fix %.*s format usage

5 years agoupas/fs: fix %.*s format usage
cinap_lenrek [Mon, 25 Feb 2019 02:39:31 +0000 (03:39 +0100)]
upas/fs: fix %.*s format usage

5 years agoupas/ned: fix %.*s format in parsesearch(), improve mkfile
cinap_lenrek [Mon, 25 Feb 2019 02:34:25 +0000 (03:34 +0100)]
upas/ned: fix %.*s format in parsesearch(), improve mkfile

5 years agoupas/scanmail: fix %.*s format in xprint(), improve mkfile
cinap_lenrek [Mon, 25 Feb 2019 02:31:50 +0000 (03:31 +0100)]
upas/scanmail: fix %.*s format in xprint(), improve mkfile

5 years agoupas/smtp: fix %.*s format for challenge in smtpcram()
cinap_lenrek [Mon, 25 Feb 2019 02:29:19 +0000 (03:29 +0100)]
upas/smtp: fix %.*s format for challenge in smtpcram()

the challenge should already be in ASCII format,
but better safe than sorry.

5 years agovt: fix %.*s in sendncars()
cinap_lenrek [Mon, 25 Feb 2019 02:25:36 +0000 (03:25 +0100)]
vt: fix %.*s in sendncars()

5 years agowebfs: properly handle %.*s in url path and debug prints
cinap_lenrek [Mon, 25 Feb 2019 02:21:09 +0000 (03:21 +0100)]
webfs: properly handle %.*s in url path and debug prints

5 years agossh: don't assume error messages are ASCII. format number of complete runes, not...
cinap_lenrek [Mon, 25 Feb 2019 00:19:44 +0000 (01:19 +0100)]
ssh: don't assume error messages are ASCII. format number of complete runes, not bytes.

5 years agoip/tinc: fix mistake from previous commit
cinap_lenrek [Fri, 15 Feb 2019 01:16:31 +0000 (02:16 +0100)]
ip/tinc: fix mistake from previous commit

5 years agolibip: prefer v4 over v6 for myipaddr()
cinap_lenrek [Wed, 13 Feb 2019 17:56:21 +0000 (18:56 +0100)]
libip: prefer v4 over v6 for myipaddr()

myipaddr() is used in legacy applications that assume a
single ip address per host. so prefer to retun a v4
address over a v6 one.

5 years agodevip: remove unused eipconvtet.c and ptclbsum.c files
cinap_lenrek [Wed, 13 Feb 2019 16:42:20 +0000 (17:42 +0100)]
devip: remove unused eipconvtet.c and ptclbsum.c files

5 years agodevip: ipv6 loopback ::1 has link-local scope
cinap_lenrek [Wed, 13 Feb 2019 07:46:49 +0000 (08:46 +0100)]
devip: ipv6 loopback ::1 has link-local scope

5 years agomerge
cinap_lenrek [Wed, 13 Feb 2019 03:47:29 +0000 (04:47 +0100)]
merge

5 years agoip/ipconfig: format ipmask with %M instead of %I
cinap_lenrek [Wed, 13 Feb 2019 03:45:41 +0000 (04:45 +0100)]
ip/ipconfig: format ipmask with %M instead of %I

5 years agopostscript: use PI
BurnZeZ [Wed, 13 Feb 2019 03:24:31 +0000 (03:24 +0000)]
postscript: use PI

5 years agolibip: don't reject ipmask in v6 form for v4 address
cinap_lenrek [Wed, 13 Feb 2019 03:04:33 +0000 (04:04 +0100)]
libip: don't reject ipmask in v6 form for v4 address

5 years agoip/ipconfig, ndb/dns, libndb: handle parseipmask() errors
cinap_lenrek [Tue, 12 Feb 2019 20:44:57 +0000 (21:44 +0100)]
ip/ipconfig, ndb/dns, libndb: handle parseipmask() errors

5 years agolibip: return -1 in parseipmask() and parseipandmask() when mask is not ipv4 and...
cinap_lenrek [Tue, 12 Feb 2019 20:43:22 +0000 (21:43 +0100)]
libip: return -1 in parseipmask() and parseipandmask() when mask is not ipv4 and v4 argument was set

5 years agodevip: use parseipandmask() for ipifc and route control message parsing
cinap_lenrek [Mon, 11 Feb 2019 22:43:14 +0000 (23:43 +0100)]
devip: use parseipandmask() for ipifc and route control message parsing

5 years agondb/dns: provide v4 argument to parseipmask(), use snprint() instead of sprint()
cinap_lenrek [Mon, 11 Feb 2019 22:42:15 +0000 (23:42 +0100)]
ndb/dns: provide v4 argument to parseipmask(), use snprint() instead of sprint()

5 years agoupas/smtpd: implement ipv6 support for ip blacklist, replace v4parsecidr() with parse...
cinap_lenrek [Mon, 11 Feb 2019 22:40:34 +0000 (23:40 +0100)]
upas/smtpd: implement ipv6 support for ip blacklist, replace v4parsecidr() with parseipandmask()

5 years agoratfs: implement ipv6 support, replace v4parsecidr() with parseipandmask()
cinap_lenrek [Mon, 11 Feb 2019 22:38:58 +0000 (23:38 +0100)]
ratfs: implement ipv6 support, replace v4parsecidr() with parseipandmask()

5 years agoip/rip: use new parseipandmask() function
cinap_lenrek [Mon, 11 Feb 2019 22:36:29 +0000 (23:36 +0100)]
ip/rip: use new parseipandmask() function

5 years agoip/ayiya: use parseipandmask(), use ipvmp() instead of equivip6()
cinap_lenrek [Mon, 11 Feb 2019 22:34:26 +0000 (23:34 +0100)]
ip/ayiya: use parseipandmask(), use ipvmp() instead of equivip6()

5 years agoip/6in4: use parseipandmask(), use ipvmp() instead of equivip6()
cinap_lenrek [Mon, 11 Feb 2019 22:33:44 +0000 (23:33 +0100)]
ip/6in4: use parseipandmask(), use ipvmp() instead of equivip6()

5 years agoip/tinc: use new parseipandmask() to parse subnets, use ipcmp()/ipmove(), remove...
cinap_lenrek [Mon, 11 Feb 2019 22:32:40 +0000 (23:32 +0100)]
ip/tinc: use new parseipandmask() to parse subnets, use ipcmp()/ipmove(), remove prefixlen