| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
| |
Diff from Vitaliy Makkoveev.
Manpage tweak and ok millert@
|
| |
|
|
| |
optval is not valid. Found by Maxime Villard. OK bluhm@
|
| | |
|
| |
|
|
|
|
|
|
| |
for a couple decades. Keep the OSIOCGIFCONF ioctl to support COMPAT_LINUX
but move the rest of the Linux-specific ioctl() handling into linux_socket.c
This lets struct osockaddr finally move from sys/socket.h to protocols/talkd.h
ok krw@ deraadt@ mpi@
|
| |
|
|
|
|
|
|
|
|
|
| |
sys_socket() supports SOCK_{CLOEXEC,NONBLOCK} now, so build on that.
doaccept() supports the non-inheriting-of-O_NONBLOCK, so build on that.
Merge compat_sys_{accept,send,recv}() into their only callers.
Lie a little and use struct sockaddr in the linux socket syscall args when
it's a return argument to avoid a bunch a casts.
Delete many other unnecessary sockaddr casts
verified with a curl Linux binary
|
| |
|
|
| |
ok mikeb@, krw@, bluhm@, tedu@
|
| |
|
|
|
|
|
| |
Compiles on i386, which is the only architecture where COMPAT_LINUX is
enabled at the moment.
"If it compiles, go ahead" pirofti@
|
| |
|
|
|
|
| |
From Maxime Villard via a post to tech@ a long time ago
ok guenther@, doug@
|
| |
|
|
| |
after discussions with beck deraadt kettenis.
|
| |
|
|
|
|
|
|
|
|
|
| |
localhost connections.
The plan is to always use the routing table for addresses and routes
resolutions, so there is no future for an option that wants to bypass
it. This option has never been implemented for IPv6 anyway, so let's
just remove the IPv4 bits that you weren't aware of.
Tested a least by lteo@, guenther@ and chrisz@, ok mikeb@, benno@
|
| |
|
|
| |
for localhost connections. discussed with deraadt@
|
| |
|
|
|
|
|
|
| |
use the routing table there's no future for an option that wants to
bypass it. This option has never been implemented for IPv6 anyway,
so let's just remove the IPv4 bits that you weren't aware of.
Tested by florian@, man pages inputs from jmc@, ok benno@
|
| |
|
|
|
|
|
|
|
| |
Tweak the handling of ktrace EMUL when changing ktracing: only
generate one per process (not one per thread) and pass the correct
proc pointer down to the VFS layer. Permit generating of NAMI and
CSW records inside ktrace(2) itself.
ok deraadt@ millert@
|
| |
|
|
|
|
|
| |
find the link-layer address of an interface, use the pointer to
the sockaddr_dl already present in the interface's descriptor.
Tested for regression by pirofti@ with opera.
|
| | |
|
| |
|
|
|
|
|
| |
CAVEATS: Assumes that a new socket can't have any of the
FCNTLFLAGS set on it, which _is_ true, currently... (guenther@)
Okay guenther@, deraadt@.
|
| |
|
|
|
|
|
|
|
|
|
| |
The newer glibc's, when creating a socket, add some higher bit flags to
the type argument that are used for debug, statistics, profiling
whatever. They are not useful and implementation specific.
This is needed for DNS resolving, otherwise the nss library from glibc
will always fail to do the right thing.
Okay jasper@
|
| |
|
|
|
|
| |
anticipation of further changes to closef(). No binary change.
ok krw@ miod@ deraadt@
|
| |
|
|
| |
linux bits compiled on i386 by sebastia@, mikeb@ ok
|
| |
|
|
| |
Okay claudio@
|
| | |
|
| |
|
|
|
|
| |
the other things it enables. Move a few old wrappers into linux compat
where they are still being used.
ok deraadt guenther
|
| |
|
|
|
| |
correctly, usually yielding the right value on 32 bit machines because
sizeof int == sizeof pointer.
|
| | |
|
| |
|
|
| |
socket, since some of them do that. ok deraadt@, henning@.
|
| | |
|
| | |
|
| |
|
|
|
| |
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
at it. we don't use stackgap because control messages can be larger than
the gap, and it's just easier this way. ok deraadt@
|
| |
|
|
|
|
|
| |
chances are big that entities allocated early should live longer than
later stackgap_init invocations. This fixes UDP problems in Linux
emulation, most notably YP, and some DNS issues.
ok fgsch@, jasoni@ & pvalchev@
|
| | |
|
| |
|
|
| |
thanks to jpmp@fibertel.com.ar for the testbed. ish@ ok
|
| |
|
|
|
|
| |
or out - this allows linux programs that use IPv6 to work (not ipv4
mapped addresses though)
- from NetBSD
|
| | |
|
| |
|
|
| |
by gustavo, several ppl ok@
|
| | |
|
| |
|
|
| |
- ok art@
|
| |
|
|
| |
> From NetBSD; ok art@
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
back out my last change.
|