History log of /netbsd/lib/librumphijack/hijack.c (Results 101 – 125 of 137)
Revision Date Author Comments
# 1f29b04e 11-Feb-2011 pooka <pooka@NetBSD.org>

play the important typecast game


# 47bf9761 11-Feb-2011 pooka <pooka@NetBSD.org>

ssh mostly ignores the return value of select(), so if the timeout
expired it would assume that all input set descriptors had activity.

In case we get rv == 0 from the poll backend, zero out the fd

ssh mostly ignores the return value of select(), so if the timeout
expired it would assume that all input set descriptors had activity.

In case we get rv == 0 from the poll backend, zero out the fd sets
to signal that in fact no descriptors have activity.

Before this commit ssh was "jittery" when run through a rump tcp/ip
stack (interactive sessions kept blocking on stdin and you had to
"peddle" the connection). Now it works smoothly ... or at least
smoothly enough so that this commit could be done through a rump
tcp/ip stack:
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root ssh 125 0 tcp localhost.65517 cvs.netbsd.org.22

show more ...


# ba463cec 08-Feb-2011 pooka <pooka@NetBSD.org>

Fix pasto, use GETSYSCALLS() where possible


# f9921216 08-Feb-2011 pooka <pooka@NetBSD.org>

Make sure we can do host kevent since the -current (and recent nb5)
libc resolver uses it. Error out in case of rump fd kevent (TODO).
Fixes one more problem pointed out by Alexander Nasonov.

Also,

Make sure we can do host kevent since the -current (and recent nb5)
libc resolver uses it. Error out in case of rump fd kevent (TODO).
Fixes one more problem pointed out by Alexander Nasonov.

Also, implement dup().
(TODO: implement it along the fcntl path too)

show more ...


# 7ce61646 08-Feb-2011 pooka <pooka@NetBSD.org>

add std dprint to fdcall


# 56dfc2a9 07-Feb-2011 pooka <pooka@NetBSD.org>

Force gcc to generate a stack frame for the call to dlsym(RTLD_NEXT).
Without this hack at least amd64 -O2 just used jmp and The Wrong
Thing happened.


# 8e2d6f1b 07-Feb-2011 pooka <pooka@NetBSD.org>

duh, _sys_read, not read. STAY FIXED, DAMNIT!


# 6a7c3df6 07-Feb-2011 pooka <pooka@NetBSD.org>

Unbreak the ssp lossage from the default -current build by removing
it. I still don't have any idea what the ssp stuff is supposed to
do and how it's supposed to even begin to work. If someone want

Unbreak the ssp lossage from the default -current build by removing
it. I still don't have any idea what the ssp stuff is supposed to
do and how it's supposed to even begin to work. If someone wants
to change this now, run tests/lib/librumphijack before commit so
that I can avoid another multihour debugging session!

show more ...


# 8cb44c1d 07-Feb-2011 pooka <pooka@NetBSD.org>

call the non-compat pollts() from inside the library


# 22096eeb 06-Feb-2011 pooka <pooka@NetBSD.org>

make it possible to specify client connection retry model in
RUMPHIJACK_RETRY


# 0f2537fa 06-Feb-2011 pooka <pooka@NetBSD.org>

be kinder about kqueue()
(but paradoxically omit the surprise)


# 00197525 05-Feb-2011 pooka <pooka@NetBSD.org>

uncommit part of previous which wasn't supposed to change


# 3da8eb8c 05-Feb-2011 pooka <pooka@NetBSD.org>

Wrap daemon() since it forks. Otherwise we lose the rumpclient kq
descriptor and have multiple processes using the commfd.


# 0ec9ceec 05-Feb-2011 pooka <pooka@NetBSD.org>

Fix some snafus to allow rumphijack to work on -current.

reported by Alexander Nasonov


# 8603084d 27-Jan-2011 pooka <pooka@NetBSD.org>

Use NEEDED for librumpclient instead of loading it manually.


# 0a476e6a 27-Jan-2011 pooka <pooka@NetBSD.org>

Set server reconnection timeout to infinite. There probably need
to be some toggle eventually, but for now I'm optimizing the default
for my firefox use ;)


# 5716fc6d 26-Jan-2011 christos <christos@NetBSD.org>

make SSP friendly


# 0fc5db86 25-Jan-2011 pooka <pooka@NetBSD.org>

fix compilation on -current


# 6cc979a7 25-Jan-2011 pooka <pooka@NetBSD.org>

the usual fun for WARNS=4

signed,
unsigned


# e591ff7c 25-Jan-2011 pooka <pooka@NetBSD.org>

dramatic whitespace fix


# 63fb7c55 25-Jan-2011 pooka <pooka@NetBSD.org>

Rewrite to declare most dual-kernel calls with macros. This helps
with adding new calls and makes all existing fd-accepting hijacked
calls dual-kernel. It would be better to autogenerate the code
f

Rewrite to declare most dual-kernel calls with macros. This helps
with adding new calls and makes all existing fd-accepting hijacked
calls dual-kernel. It would be better to autogenerate the code
from syscalls.master, but this is easier for now.

show more ...


# 0ebea694 19-Jan-2011 pooka <pooka@NetBSD.org>

Do the standard dance for sendto/recvfrom since nspluginwrapper
wants to use them. XXX: need to fold the dance sequence into a
common routine.


# c29191c8 18-Jan-2011 pooka <pooka@NetBSD.org>

fix lp64 snafu (hopefully)

from pgoyette


# 489d009b 18-Jan-2011 pooka <pooka@NetBSD.org>

* attempt to match libc non-compat names (XXX: needs work)
* make shutdown() a dual-stack call
* flip the default to use host for PF_UNIX, since that's generally
the desired case (because of X)


# 30f66265 18-Jan-2011 pooka <pooka@NetBSD.org>

pollts:
Since fds[] does not go to both kernels, set revents to 0 when
splitting the vector. Now any stale revents passed by the caller
do not get counted as results for the kernel which did not "wi

pollts:
Since fds[] does not go to both kernels, set revents to 0 when
splitting the vector. Now any stale revents passed by the caller
do not get counted as results for the kernel which did not "win"
the poll.

This fixes a situation where a firefox transfer would occasionally
stall. Now firefox works full speed with a rump networking stack.

show more ...


123456