| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Based/previous work on an idea from deraadt@
Input from claudio@, djm@, deraadt@, sthen@
OK deraadt@
|
|
|
|
|
|
|
|
| |
can also be retrieved with getsockopt(3)
it looks like these will also be in the next issue of posix:
http://austingroupbugs.net/view.php?id=840#c2263
ok claudio@, sthen@
|
|
|
|
|
|
|
|
|
| |
this renames the PF_LINK bit of the mib from "link_layer" to "link".
then it makes it a node that could be used for generic link layer
bits. the first of these is an "ifrxq" node where the "pressure_return"
and "pressure_drop" things go.
ok visa@ deraadt@
|
|
|
|
|
|
|
| |
AF_UNIX is both the historical _and_ standard name, so prefer and recommend
it in the headers, manpages, and kernel.
ok miller@ deraadt@ schwarze@
|
|
|
|
| |
ok deraadt bluhm
|
|
|
|
|
|
|
| |
inline function instead of casting it to sockaddr. While there,
use inline instead of __inline for all these conversions. Some
struct sockaddr casts can be avoided completely.
OK dhill@ mpi@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In order to stop abusing lo0 for all rdomains, a new loopback interface
will be created every time a rdomain is created. The unit number will
be the same as the rdomain, i.e. lo1 will be attached to rdomain 1.
If this loopback interface is already in use it wont be possible to create
the corresponding rdomain.
In order to know which lo(4) interface is attached to a rdomain, its index
is stored in the rtable/rdomain map.
This is a long overdue since the introduction of rtable/rdomain. It also
fixes a recent regression due to resetting the rdomain of an incoming
packet reported by semarie@, Andreas Bartelt and Nils Frohberg.
ok claudio@
|
|
|
|
| |
Alternate define location suggested by deraadt@ and kettenis@, ok kettenis@
|
|
|
|
|
|
|
|
|
|
|
| |
- <sys/types.h>: don't pull in <sys/select.h>
- <sys/select.h>: don't pull in <sys/time.h>, but rather declare timeval
and timespec locally
- <sys/time.h>: *do* always pull in <sys/select.h>
- <sys/socket.h>: declare timeval if __BSD_VISIBLE for struct splice
Ports testing and fixed by ajacoutot@
ok deraadt@ millert@
|
|
|
|
|
|
|
|
| |
mappings. This will be used by if_nameindex(3), if_nametoindex(3) and
if_indextoname(3) soon to fix the issues in pledge because of inet6 link
local addressing.
OK mpi@ benno@ deraadt@
The libc version will follow soon so better start updating your kernels
|
|
|
|
|
|
|
|
|
| |
socket(). Without pledge, all other socket behaviours become permitted,
except this one case: connect/send* only works to *:53. In pledge mode,
a very few are further restricted. Some backwards compatibility for
the dnssocket/dnsconnect calls will remain in the tree temporarily so
that people can build through the transition.
ok tedu guenther semarie
|
|
|
|
|
| |
based on jeremy@'s diff
ok jeremy@ deraadt@
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
|
|
| |
by pulling in <sys/uio.h>, so do so. Remove some stuff that we can trust
<sys/uio.h> to also provide, like cdefs.h, _types.h, and exposing size_t
and ssize_t
pointed out by naddy@
ok deraadt@
|
|
|
|
| |
ok millert@ manpage feedback jmc@
|
|
|
|
|
|
|
| |
when creating them: pipe2(), dup3(), accept4(), MSG_CMSG_CLOEXEC,
SOCK_CLOEXEC. Includes SOCK_NONBLOCK support.
ok matthew@
|
|
|
|
|
|
| |
standard portion of the header.
Most of the diff from James Turner (james (at) calminferno.net)
|
|
|
|
|
| |
Much ports testing of various versions by naddy@ and jasper@
ok matthew@, miller@
|
| |
|
|
|
|
| |
ports tree checked by naddy
|
|
|
|
| |
no objection from mcbride@ krw@ markus@ deraadt@
|
|
|
|
| |
linux bits compiled on i386 by sebastia@, mikeb@ ok
|
|
|
|
|
|
|
|
| |
compat names kept in <machine/param.h>. In <sys/socket.h>, pull
in <sys/_types.h> instead of the namespace polluting <machine/param.h>
and completely eliminate __CMSG_ALIGN, replaced by _ALIGN
ok deraadt@
|
|
|
|
|
|
| |
The song and dance for handling 16-bit af_family on big-endian
machines remains untouched.
ok claudio miod tedu guenther
|
|
|
|
|
| |
bluhm, jasper and millert -- an epic fail on my side), style nits from
deraadt, millert, ok guenther, kettenis, millert, ports tests by jasper
|
|
|
|
|
|
|
|
|
| |
Include PIPEX in kernel by default. And add new sysctl variable
`net.pipex.enable' to enable PIPEX. By default, pipex is disabled
and it will not process packets from wire. Update man pages and
update HOWTO_PIPEX_NPPPD.txt for testers.
discussed with dlg@, ok deraadt@ mcbride@ claudio@
|
|
|
|
|
|
|
| |
field of the `splice' structure can be used to specify a period of
inactivity after which splicing will be dissolved. ETIMEDOUT error
retrieved with a SO_ERROR indicates the idle timeout expiration.
With comments from and OK bluhm.
|
|
|
|
|
|
| |
one has been weeding it, and it makes life harder.
Toasts of Brennivin for its passing from many; diff ok henning@
|
|
|
|
|
|
|
| |
The data received on the source socket will automatically be sent
on the drain socket. This allows to write relay daemons with zero
data copy.
ok markus@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
and make it possible to bind sockets (including listening sockets!)
to rtables and not just rdomains. This changes the name of the
system calls, socket option, and ioctl. After building with this
you should remove the files /usr/share/man/cat2/[gs]etrdomain.0.
Since this removes the existing [gs]etrdomain() system calls, the
libc major is bumped.
Written by claudio@, criticized^Wcritiqued by me
|
| |
|
|
|
|
| |
suggested by guenther
|
|
|
|
| |
ok deraadt miod
|
|
|
|
|
|
|
| |
getpeereid(2), but also supplies the remote pid. This is supplied in
a 'struct sockpeercred' (unlike Linux -- they showed how little they
know about real unix by calling theirs 'struct ucred').
ok guenther ajacoutot
|
|
|
|
|
| |
blocking other cleanups
ok miod@
|
|
|
|
|
|
|
| |
and rdomainid are returned. This is necessary to know where L2 information
of a table is stored (which will be needed soon by bgpd).
Also while there change the errno for non-existing routing tables to ENOENT.
'Fine' deraadt@
|
|
|
|
|
|
|
|
| |
catch the libc major bump per request from deraadt@
Diff by reyk.
ok guenther@
|
| |
|
|
|
|
|
|
|
|
|
| |
alternate routing table and separate them from other interfaces in distinct
routing tables. The same network can now be used in any doamin at the same
time without causing conflicts.
This diff is mostly mechanical and adds the necessary rdomain checks accross
net and netinet. L2 and IPv4 are mostly covered still missing pf and IPv6.
input and tested by jsg@, phessler@ and reyk@. "put it in" deraadt@
|
|
|
|
| |
ok cluadio@ henning@
|
|
|
|
|
|
|
|
|
| |
The option allows a socket to be bound to addresses which are not
local to the machine. In order to receive packets for these addresses
SO_BINDANY needs to be combined with matching outgoing pf(4) divert
rules, see pf.conf(5).
ok beck@
|
|
|
|
|
|
|
|
|
| |
get a timestamp of when the datagram was accepted (by udp(4), for
example) rather than having to take a timestamp with gettimeofday(2)
when recv(2) returns - possibly several hundreds of microseconds later.
May be of use to those interested in precision network timing schemes
or QoS for media applications. Tested on alpha, amd64, i386 and sparc64.
manpage suggestions from jmc, ok deraadt
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MPLS support partly based on the (abandoned?) AYAME project.
Basic LSR (Label Switch Router) functionality is present, but not fully
functional yet.
It is currently possible to insert entries in the LIB (Label Information Base)
with route(8), but setting the operation type is not supported yet.
Imported to allow more people to work on this in the coming weeks.
ok claudio@ laurent@ dlg@
|
|
|
|
| |
sys/dev/pci/pciide.c from naddy@
|
|
|
|
| |
From: Pierre Riteau <pierre.riteau@free.fr>
|
|
|
|
| |
instead of kvm access. OK henning@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on the local network support them.
This adds a new socket option, SO_JUMBO, and a new route flag,
RTF_JUMBO. If _both_ the socket option is set and the route for the host
has RTF_JUMBO set, ip_output will fragment the packet to the largest
possible size for the link, ignoring the card's MTU.
The semantics of this feature will be evolving rapidly; talk to us
if you intend to use it.
ok deraadt@ marius@
|
|
|
|
| |
ok deraadt, ok markus some time ago
|
|
|
|
|
| |
nothing in our tree uses it (well, would have been spotted then)
netbsd PR kern/29624 via jmc@, agreed on by claudio some time ago
|