summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-10-08Make sure that when trunk_port_ioctl is called to set a newmikeb1-5/+5
lladdr the trunk port is already on the list. OK mpi
2015-10-08Handle case where no hint is passed in. Found as a crash of fdm by jturner@deraadt2-4/+4
2015-10-08setsockopt has a small list of options it can set. If we find ourselvesderaadt1-1/+8
only in TAME_UNIX, stop trying after servicing SOL_SOCKET. discussion with claudio
2015-10-08Only in TAME_ROUTE, allow ioctl SIOCGIFADDR/SIOCGIFFLAGS/SIOCGIFRDOMAIN,deraadt1-1/+12
because many routing daemon processes with this attribute need to fetch that information to work. discussed with claudio and renato
2015-10-08the -P flag overwrites files, so it needs tame "stdio rpath wpath cpath".deraadt1-1/+9
the remaining code paths can use tame "stdio rpath cpath". One again, the "cpath" request says a path-based system call will be used to "change" filesystem pathname layout, for instance any of O_CREAT, symlink, rename, unlink...
2015-10-08Simpify some code by noting that DOSBBSECTOR is 0, so "if (n >krw2-12/+6
n+DOSBBSSECTOR) ..." is pointless, as is "n = n + DOSBBSECTOR;".
2015-10-08if the mbuf has a valid flowid, use it instead of using siphash24dlg1-1/+4
and a bunch of header fields we have to parse the mbuf for. siphash24 is about 20% of the cost of sending a udp packet on a trunk interface with tcpbench on my box. if there's a flowid set we get all that back. ok mpi@ mikeb@ sthen@
2015-10-08use the state id to set a flowid on an mbuf.dlg1-1/+6
ok mpi@ mikeb@ sthen@
2015-10-08steal some padding in mbuf pkthdrs to store a flow id.dlg2-5/+24
the flowid roughly identifies a flow or connection that the mbuf is a part of, and can be used instead of hashing contents of the packet (like src+dst mac and ip addresses) to decide which path a packet should take. ok mpi@ mikeb@ sthen@
2015-10-08Local route entries are always UP now, missed in previous.mpi3-3/+3
2015-10-08Implement set_pages_array_wb() and set_pages_array_wc() for powerpc. Sincekettenis1-5/+7
powerpc doesn't actually implement write-combining fall back to uncached mappings. ok mpi@, jsg@
2015-10-08Add a per-page flag to indicate that all mappings of that page should bekettenis2-5/+8
uncached. To be used in the drm code. ok mpi@
2015-10-08allow a test to manage itself the tame(2) call.semarie1-10/+14
2015-10-08Unlock the softnet task.mpi1-3/+1
ok dlg@, kettenis@
2015-10-08fix an fd leak if socket connection fails; from Carlin Binghamjsg1-1/+3
ok reyk@
2015-10-08fix a typo; from Carlin Binghamjsg1-2/+2
2015-10-08Call em_start() when we detect a link state change such that packets startkettenis1-1/+3
flowing again even if the send queue is currently full. Restores the fix made by makeb@ in rev 1.263 which was lost in making the tx completion path mpsafe. ok mikeb@
2015-10-08Use the radix API directly and get rid of the function pointers. Therempi4-36/+11
is no point in keeping an unused level of abstraction. ok mikeb@, claudio@
2015-10-08add comment, suggested by reyksthen1-1/+2
2015-10-08Link the result of each mps_getbulkreq() to the end of the previous liststhen3-8/+17
and not the start of it. Fixes getbulk requests for multiple OIDs. From Gerhard Roth, ok blambert@
2015-10-08use correct return value for IP-MIB::ipForwarding, tweak/ok uebayasi@sthen1-2/+2
2015-10-08trailing whitespace;jmc1-6/+6
2015-10-08Try again. Both -R and -p prevent use of tame, but other cases can use it.deraadt1-1/+9
2015-10-08syncderaadt1-0/+2
2015-10-08Rip the guts out of another gibbering horror of a time comparison function, andbeck4-74/+48
mark it as #ifndef LIBRESSL_INTERNAL at least we don't use this. ok jsing@
2015-10-08revert previous accidental commitbeck4-46/+72
2015-10-08Spelling in commentbeck6-78/+50
2015-10-08ah, fchflags. We will come back to this issue laterderaadt1-6/+1
2015-10-07Add tls_peer_cert_notbefore and tls_peer_cert_notafter to expose peer certificatebeck6-9/+98
validity times for tls connections. ok jsing@
2015-10-07Allow us to get cipher and version even if there is not a peer certificate.beck2-15/+21
ok doug@
2015-10-07In theory, bgpd should be happy with tame "stdio unix route recvfd".deraadt1-1/+5
Let's hear from people's experiences by commiting it.
2015-10-07use new tame "route" feature when possiblederaadt1-7/+9
2015-10-07use fatal() instead of err(); from bennoderaadt1-2/+2
2015-10-07Split out routing sysctl's from tame "inet", and put them into thederaadt2-45/+57
new tame "route" request. Now routing daemons and tools (such as arp), can narrowly ask for either feature. One thing remains available in both cases -- support for getifaddr()'s, since libc and programs often use that in close association with socket creation. ok benno sthen beck, some discussion with renato
2015-10-07Use getline(3) rather than fgetln(3). OK gilles@millert1-5/+7
2015-10-07one simple free, ok mpideraadt1-4/+4
another not so simple free, repaired by mpi
2015-10-07Add initial support for UEFI/GPT installs to install script. Originalkrw2-4/+21
diff from rpe@. ok deraadt@ yasuoka@
2015-10-07use tame "stdio rpath tty", for ttyname(). from Rob Pierce, who chose toderaadt1-2/+5
do this using ktrace step by step. not the method i recommend, because it requires 100% coverage via feature tests. better to read the code and understand everything being called, then make decisions.
2015-10-07"..." implies optional, so no need for []; from michael reedjmc6-16/+15
2015-10-07from previous commit: "ioctl" is used for grab ttyname(0)semarie1-2/+2
with a function's name like that "tty" should be a better request (more strict) pointed by and ok deraadt@
2015-10-07Be explicit that the user is responsible for freeing the line buffermillert1-4/+10
and show this in the example.
2015-10-07enable tame(2) in who(1).semarie1-9/+21
some refactor to grab ttyname(0) early and use it later. gradually drop tame requests when no more needed. "ioctl" is used for grab ttyname(0) "rpath" is for -T and -u flag, that used stat(2) to get terminal status initial patch from deraadt with help from guenther ok deraadt@
2015-10-07include PubkeyAcceptedKeyTypes in ssh -G config dumpdjm1-1/+2
2015-10-07tame "stdio cpath". The cpath is for rmdir(). Tame bundles all the systemderaadt1-1/+4
calls that create/destroy filesystem paths in the "cpath" request.
2015-10-07We cannot tame if -R is specified, because mknod and mkfifo may be called.deraadt1-1/+6
But in other cases, we can use tame "stdio rpath wpath cpath fattr", including for the historical -r option.
2015-10-07easy size for free(); ok mpideraadt1-2/+4
2015-10-07easy free sizes; ok mpideraadt2-5/+5
2015-10-07UsePrivilegeSeparation defaults to sandbox now.sobrado1-4/+9
ok djm@
2015-10-07tame "stdio rpath wpath cpath" to support use of freopen() with "w"deraadt1-1/+4
2015-10-07tame "stdio inet rpath wpath cpath" supports all the functions of tftp.deraadt1-1/+4