Displaying 1 50 of 40,401 commits (0.009s)

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

June 29, 2018 snapshot from https://pci-ids.ucw.cz
Delta File
+20 -3 share/misc/pci_vendors
+20 -3 1 file

DragonFlyBSD — sbin/sysctl sysctl.c, share/man/man9 sysctl_add_oid.9 sysctl.9

kernel/sysctl: Add handling of uint32_t.

DragonFlyBSD — share/man/man4 tap.4, sys/net/tap if_tap.c

if_tap: Restore SIOCGIFFLAGS, SIOC[GS]IFADDR ioctls for tapioctl()

These ioctls allow basic control of the network interface via the device
file (/dev/tapX).  For example, our vke(4) device currently uses the
'SIOCGIFADDR' ioctl.
Delta File
+22 -1 share/man/man4/tap.4
+17 -0 sys/net/tap/if_tap.c
+39 -1 2 files

DragonFlyBSD — etc rc, etc/rc.d localdaemons

rc: Bring in a simple mechanism to run rc scripts only once.

The basic mechanism is: If /firstboot exists, rc will also run all
scripts that have the "firstboot" keyword, then delete /firstboot.

This is a simpler version of FreeBSD's work. Specifically, we hardcode
the firstboot sentinel's name to /firstboot and we also remove it a
bit more simply because we assume that at the end of /etc/rc, root is
R/W.

This mechanism is used for example by sysutils/ec2-scripts and is in
preparation for the upcoming ena(4) driver import.

Based-on: FreeBSD
Delta File
+18 -2 etc/rc.d/localdaemons
+11 -2 etc/rc
+12 -1 share/man/man8/rc.8
+41 -5 3 files

DragonFlyBSD — lib/libc/resolv res_comp.c

libc - MFC resolver fix

* Allows intermediate domain names with an underscore.

* Fixes lookups of 'www.office.com' and 'www.newegg.com', and
  probably other domains.

Reported-by: kerma
Diagnosed-by: kerma, tautology
Delta File
+2 -1 lib/libc/resolv/res_comp.c
+2 -1 1 file

DragonFlyBSD — lib/libc/resolv res_comp.c

libc - MFC resolver fix

* Allows intermediate domain names with an underscore.

* Fixes lookups of 'www.office.com' and 'www.newegg.com', and
  probably other domains.

Reported-by: kerma
Diagnosed-by: kerma, tautology
Delta File
+2 -1 lib/libc/resolv/res_comp.c
+2 -1 1 file

DragonFlyBSD — sys/net/tun if_tun.c

if_tun: Allow IP packets of length TUNMRU with TUNSIFHEAD set

Obtained-from: FreeBSD (revision 300205)
Delta File
+5 -2 sys/net/tun/if_tun.c
+5 -2 1 file

DragonFlyBSD — share/man/man4 tun.4

if_tun: Update tun.4 man page to match the code

Mainly follow FreeBSD's tun.4, refer to NetBSD's tun.4, and with my own
minor adjustments.
Delta File
+83 -39 share/man/man4/tun.4
+83 -39 1 file

DragonFlyBSD — sys/net/tap if_tap.c if_tapvar.h

Revert "if_tap: Get rid of arpcom struct from tap_softc struct"

This reverts commit 78e1ab4a8fc0074361116dedb55e6dc02baea351, with
minor adjustments to reduce the diff.

Thank sephe for pointint out the problem with that commit, which
breaks the 'ether_ifattach()' as well as some IPv6 stuffs that
assume the existence of 'arpcom'.
Delta File
+13 -23 sys/net/tap/if_tap.c
+2 -1 sys/net/tap/if_tapvar.h
+15 -24 2 files

DragonFlyBSD — share/man/man9 ioctl.9

ioctl.9: Remove some obsolete commented out info.
Delta File
+0 -2 share/man/man9/ioctl.9
+0 -2 1 file

DragonFlyBSD — share/man/man4 tap.4, sys/net/tap if_tap.h if_tap.c

if_tap: Disallow change network device type

Disallow ioctl(2) to change the network device type of tap(4).
Otherwise, page faults and panics can happen when access uninitialized
fields in the "struct ifnet" which are specific to the network device
type.

Obtained-from: FreeBSD (revision 326362)

DragonFlyBSD — test/test WRITEME

test - Test after repository move to SSD

* Test after repository move to SSD
Delta File
+1 -0 test/test/WRITEME
+1 -0 1 file

DragonFlyBSD — share/man/man4 tap.4, sys/net/tap if_tap.c if_tap.h

if_tap: Add TAPGIFNAME ioctl to get interface name

This is a convenient shortcut to obtain the network interface name using
file descriptor for character device.

This ioctl is obtained from FreeBSD (revision 182880) which was further
obtained from NetBSD.  This ioctl is used by softwares such as QEMU.

Bump __DragonFly_version and update tap.4 man page.

DragonFlyBSD — share/man/man4 tap.4, sys/net/tap if_tap.c if_tap.h

if_tap: Remove the broken vmnet support

The vmnet feature provided by tap(4) was intended to be used by the
VMWare port that runs as the server side to communicate with its clients.
However, our tap(4) was updated a lot in the past but left the vmnet
function broken.  In addition, we don't have the VMWare server and thus
the vmnet function isn't needed in the foreseeable future.
So just remove it.

Discussed-with: swildner, sephe

DragonFlyBSD — etc Makefile.usr

Disable cert verification for pkg-bootstrap when no cert.pem

Our site uses HTTPs and fetch(1) requires /etc/ssl/cert.pem or
/usr/local/etc/ssl/cert.pem to verify the server's certificate.
However, when one needs to bootstrap the 'pkg', that cert.pem
generally doesn't exist since it is installed by the ca_root_nss
package.  So disable certificate verification for fetch(1) in
such a case.

Split out 'pkg-bootstrap-{fetch,install}' targets to get rid of
some duplicate codes.
Delta File
+24 -17 etc/Makefile.usr
+24 -17 1 file

DragonFlyBSD — sys/dev/disk/nvme nvme.c nvme_admin.c

nvme - Do a better job backing out of probe errors

* AWS provides nvme interfaces which might not have attached volumes.
  Improve stability on AWS nvme (still needs more work).  Play nice
  when queue creation fails.  Do a better job tracking MSI-X
  interrupt installation and removal.

DragonFlyBSD — etc Makefile.usr

misc - Allow /usr/dports to be a null-mount

* Don't punt on rm -rf /usr/dports if /usr/dports cannot be
  deleted.  It might be a null mount.
Delta File
+4 -1 etc/Makefile.usr
+4 -1 1 file

DragonFlyBSD — bin/hostname hostname.1 hostname.c

hostname(1): Add a compat option -f to print the FQDN (our default).

This should fix the build of multimedia/libcec.

Found-in: FreeBSD

DragonFlyBSD — share/man/man4 tap.4

if_tap: Update tap.4 man page to match the code

Remove the description on FIONBIO ioctl since ours doesn't support it.

Mainly taken from FreeBSD, with some improvements.
Delta File
+106 -40 share/man/man4/tap.4
+106 -40 1 file

DragonFlyBSD — share/man/man4 tun.4, sys/net/tun if_tun.c if_tun.h

if_tun: Disallow change network device type

Disallow ioctl(2) to change the network device type of tun(4).
Otherwise, page faults and panics can happen when access uninitialized
fields in the "struct ifnet" which are specific to the network device
type.

Obtained-from: FreeBSD (revision 326362)

DragonFlyBSD — share/man/man4 tun.4, sys/net/tun if_tun.c if_tunvar.h

if_tun: Implement interface clone support

Now 'ifconfig tunX create' and 'ifconfig tunX destroy' work.

The tun device will be automatically destroyed when being closed,
except for the manually created tun device/interface by
'ifconfig tunX create', similar to the tap(4) device.

This interface clone support is based on the if_tap device.
Delta File
+133 -21 sys/net/tun/if_tun.c
+17 -2 share/man/man4/tun.4
+2 -0 sys/net/tun/if_tunvar.h
+152 -23 3 files

DragonFlyBSD — sys/net/tun if_tun.c

if_tun: Better name interface-related functions

Rename interface-related functions to be 'tunifxxx', and reorder a
bit to better group them.

Tweak the styles and improve debug messages a bit.
Delta File
+65 -59 sys/net/tun/if_tun.c
+65 -59 1 file

DragonFlyBSD — sys/net/tap if_tap.c

if_tap: Return error instead of system panic

Return error when failed to create/find the device and to allocate
the interface struct, instead of system panic.
Delta File
+18 -10 sys/net/tap/if_tap.c
+18 -10 1 file

DragonFlyBSD — sys/net/tap if_tap.c if_tapvar.h

if_tap: Remove redundant unit from tapcreate() and tun_softc

The tap interface unit number is the same as minor number of the
associated tap device, so remove the redundant "unit" argument
from tapcreate() function as well as the "tap_unit" entry from
tun_softc struct.

Meanwhile, improve the debug messages.
Delta File
+11 -10 sys/net/tap/if_tap.c
+0 -1 sys/net/tap/if_tapvar.h
+11 -11 2 files

DragonFlyBSD — sys/net/tap if_tap.c if_tapvar.h

if_tap: Get rid of arpcom struct from tap_softc struct

Remove the ancient arpcom struct from the tap_softc struct,
meanwhile introduce the "tap_ifp" member that points to the
interface (ifnet struct) associating with the tap device.
Delta File
+24 -16 sys/net/tap/if_tap.c
+1 -2 sys/net/tap/if_tapvar.h
+25 -18 2 files

DragonFlyBSD — sys/net/tap if_tap.c

if_tap: Destroy the autoclone device when unload module

Use destroy_autoclone_dev(), which replaces both devfs_clone_handler_del()
and devfs_clone_bitmap_uninit(), to destroy the autoclone device /dev/tap
when unload the module.

Without this fix, the autoclone device /dev/tap is left over when the
module is unloaded.
Delta File
+5 -12 sys/net/tap/if_tap.c
+5 -12 1 file

DragonFlyBSD — sys/net/tun if_tun.c

if_tun: Add sysctl net.link.tun.{refcnt,debug}

Add read-only sysctl net.link.tun.refcnt to show the number of opened
devices.

Add sysctl net.link.tun.debug to be a alias to debug.if_tun_debug.
Delta File
+7 -0 sys/net/tun/if_tun.c
+7 -0 1 file

DragonFlyBSD — sys/net/tap if_tap.c

if_tap: Add read-only sysctl net.link.tap.refcnt

Expose the number of opened devices as a read-only sysctl:
net.link.tap.refcnt.

Improve the debug messages with respect to the refcnt.
Delta File
+7 -5 sys/net/tap/if_tap.c
+7 -5 1 file

DragonFlyBSD — share/man/man4 tun.4, sys/net/tun if_tun.c if_tunvar.h

if_tun: Support module load and unload

Track the created tun devices in a list, and record the number of opened
tun devices.  Destroy all tun devices when unloading the module.

Mainly based on if_tap.

DragonFlyBSD — contrib/diffutils README.DELETED

diffutils: Update README.DELETED.
Delta File
+1 -0 contrib/diffutils/README.DELETED
+1 -0 1 file

DragonFlyBSD — contrib/diffutils/lib mktime-internal.h

Merge branch 'vendor/DIFFUTILS'
∈ Sascha Wildner - cb5b1272 - 2018-07-07 21:01:37
diffutils: Remove another unneeded file from the vendor branch.

DragonFlyBSD — share/man/man7 hier.7

hier.7: Mention /rescue.
Delta File
+4 -1 share/man/man7/hier.7
+4 -1 1 file

DragonFlyBSD — contrib/openpam README.DRAGONFLY, lib/libpam/libpam config.h Makefile

openpam: Local adjustments for the Resedacea upgrade.

DragonFlyBSD — contrib/openpam HISTORY RELNOTES, contrib/openpam/doc/man pam_get_authtok.3 pam_get_user.3

Merge branch 'vendor/OPENPAM'
∈ Sascha Wildner - 10b5fe87 - 2018-07-07 18:23:48
Import OpenPAM Resedacea.

See HISTORY for the details.

DragonFlyBSD — sys/net/tun if_tun.c if_tunvar.h

if_tun: Add "cdev_t tun_dev" to tun_softc struct

Similar to if_tap, save the tun device in the tun_softc struct.

DragonFlyBSD — sys/net/tun if_tun.c if_tunvar.h

if_tun: Use pointer to ifnet in tun_softc struct

Use a pointer to the ifnet struct in the tun_softc struct, instead of
embedding a full ifnet struct in it.  (similar to FreeBSD's)

Use if_alloc() to allocate the ifnet struct.
Delta File
+12 -8 sys/net/tun/if_tun.c
+1 -1 sys/net/tun/if_tunvar.h
+13 -9 2 files

DragonFlyBSD — sys/net/tun if_tun.c if_tun.h

if_tun: Some small tweaks and cleanups

* Consistently use the TUN define instead of "tun".

* Use variable "sc" instead of "tp" to refer to "struct tun_softc".

* Use variable "ifp" (struct ifnet *) to make code more readable.

* Static the bitmap variable.

* Various style tweaks.
Delta File
+223 -193 sys/net/tun/if_tun.c
+8 -9 sys/net/tun/if_tun.h
+7 -9 sys/net/tun/if_tunvar.h
+238 -211 3 files

DragonFlyBSD — sbin/hammer2 hammer2.h

sbin/hammer2: Explicitly include <sys/stat.h> for stat(2)

Fix compile error on Linux.
Delta File
+1 -0 sbin/hammer2/hammer2.h
+1 -0 1 file

DragonFlyBSD — sys/net/tap if_tap.c

if_tap: Remove global variable "taplastunit"

This global variable isn't helpful.  In addition, the tap units can be
non-continuous.
Delta File
+6 -12 sys/net/tap/if_tap.c
+6 -12 1 file

DragonFlyBSD — sys/net/tap if_tap.c if_tapvar.h

if_tap: Some small tweaks and cleanups

* Consistently use the TAP define instead of "tap", also remove the
  CDEV_NAME define.

* Consistently use "tap_if" instead of "arpcom.ac_if".

* Better name the kqueue functions, and move the structs to the beginning.

* Reorder to better group related functions.

* Explicitly include the required <sys/queue.h> header.

* Use variable "sc" instead of "tp" to refer to "struct tap_softc".

* Staticize the bitmap variable.

* Use the variable unit = minor(dev) more.

* Improve the debug messages.

* Various minor style tweaks and cleanups.
Delta File
+308 -309 sys/net/tap/if_tap.c
+12 -13 sys/net/tap/if_tapvar.h
+3 -5 sys/net/tap/if_tap.h
+323 -327 3 files

DragonFlyBSD — sbin/hammer2 icrc.c

sbin/hammer2: Drop unused header includes in icrc.c

libdmsg, UUID, and HAMMER2 ondisk definitions are not needed
for CRC calculation.
Delta File
+0 -4 sbin/hammer2/icrc.c
+0 -4 1 file

DragonFlyBSD — sys/boot/common loader.8 help.common

Fix remaining references to mkinitrd.8 to initrd.7

Reported-by: swildner

DragonFlyBSD — lib/libtelnet sra.c

libtelnet: Fix styles in sra.c

Fix various small style(9) issues in sra.c, making some of the logic
clearer.
Delta File
+64 -69 lib/libtelnet/sra.c
+64 -69 1 file

DragonFlyBSD — initrd/rescue.libcrypto Makefile, lib/libtelnet Makefile

telnet(1): Disable PAM for the rescue version

This avoids several PAM-related libraries when crunching telnet, and
reduces the size by about 200 KB.

DragonFlyBSD — lib/libtelnet sra.c

libtelnet: Fix build with NOPAM

Also don't perform a check for "secure" tty for root logins when using
PAM; that is what we provide pam_security(8) for.

Taken-from: NetBSD (lib/libtelnet/sra.c, v1.6)
Delta File
+24 -20 lib/libtelnet/sra.c
+24 -20 1 file

DragonFlyBSD — lib/libtelnet sra.c

libtelnet: Some small updates to sra.c from NetBSD

* Define 'SMALL_LEN' and 'XSMALL_LEN' to replace the explicit numbers.
  (also replaced the original PASS_SIZE)

* Use 'strlcpy()' and 'snprintf()' when appropriate.

* Clean some type casts.

* Some style(9) tweaks.
Delta File
+42 -36 lib/libtelnet/sra.c
+42 -36 1 file

DragonFlyBSD — lib/libc/string wcscoll.3

wcscoll.3: Remove leading '+' from copy/paste from a patch.
Delta File
+4 -4 lib/libc/string/wcscoll.3
+4 -4 1 file

DragonFlyBSD — sys/net/tun if_tun.h

if_tun: Raise maximum MTU to be 65535 bytes

This is used, for example, by packetdrill to test with MTU's up to the
maximum value.

Taken-from: FreeBSD (revision 300603)
Delta File
+1 -1 sys/net/tun/if_tun.h
+1 -1 1 file

DragonFlyBSD — sys/vfs/hammer hammer_crc.h

sys/vfs/hammer: Cleanup CRC functions

The inner cmp in nested `vol_version >= HAMMER_VOL_VERSION_SEVEN`
conditional in hammer_crc_test_xxx() mostly get optimized out by gcc,
so not much reason to have __hammer_crc_get_xxx() in case of retry
using old CRC.
Delta File
+14 -66 sys/vfs/hammer/hammer_crc.h
+14 -66 1 file

DragonFlyBSD — sys/kern kern_objcache.c

objcache: Add stat counting # of exhaustion.

Use it to supress exhaustion warning; nuke no longer used 'exhausted'
field in objcache struct.
Delta File
+4 -4 sys/kern/kern_objcache.c
+4 -4 1 file