iwm: Fix S:N reporting in ifconfig(8)While there, rename ieee80211_rx_stats fields nf and rssi to c_nf andc_rssi, following FreeBSD and other field names of the struct.With this commit, S:N is p
iwm: Fix S:N reporting in ifconfig(8)While there, rename ieee80211_rx_stats fields nf and rssi to c_nf andc_rssi, following FreeBSD and other field names of the struct.With this commit, S:N is properly reported:> ifconfig wlan0 scanSSID/MESH ID BSSID CHAN RATE S:N INT CAPSThe Bloom R... 00:e0:4c:b7:65:8c 1 54M -33:-96 100 EP WPA RSN HTCAP WME0x4e68c3a02... 50:0f:f5:c5:cd:d9 1 54M -82:-96 100 EP HTCAP MESHCONF RSN WMEGenetica ta... b0:be:76:df:af:a6 1 54M -83:-96 100 EPS RSN HTCAP WME ATH WPSThe Bloom R... 00:e0:4c:b7:6a:b0 6 54M -57:-96 100 EP WPA RSN HTCAP WME...Fixes: https://bugs.dragonflybsd.org/issues/3366 (#3366)
show more ...
Various minor whitespace cleanupsAccumulated along the way.
netproto/mpls: Fix 'cpuid' to be 'mycpuid' and thus fix buildThe typo was made by me in commit6823c302c37b3feda6c2c8b524a99daa1bcff11f.After this fix, LINT64 builds fine.
kernel: Remove unnecessary casts for updated mbuf(9) functions
busdma - Remove filter functionality- Remove filtfunc and filtarg arguments from bus_dma_tag_create() and fix all callers. All callers use NULL today for both filterfunc and filterarg with one
busdma - Remove filter functionality- Remove filtfunc and filtarg arguments from bus_dma_tag_create() and fix all callers. All callers use NULL today for both filterfunc and filterarg with one exception: if_jme.- Remove filter functionality internally and parent tag tracking. Without filter functions, we do not need to keep track of tag ancestry. All inheritance of the parent tag's parameters occurs when creating the new child tag.- rename run_filter() to addr_needs_bounce().- FreeBSD keeps the filtfunc and filtarg arguments but requires them to be NULL.- Drop filterfunc usage from if_jme. In case of "JMC260 chip full mask revision 2", which has a hardware bug when it comes to DMA transfers crossing the 4 GB bounday, the parent buffer tag already limits DMA memory to 32bit address space. As such it should be safe to drop the filterfunc. The filterfunc was checking if the lower 32bits of the physical address used for DMA are all 0. In case of a 32bit address space, the only address where all lower 32-bits are all zero is 0 itself and I am here assuming that the physical address 0 is not used for DMA transfers!Mainly obtained from: FreeBSD (commits 7cb028de, 900907f4, 1228b93b, 3933ff56)
net/radix: Update rn_inithead() parameter type to avoid boring castsChange to use the proper 'struct radix_node_head **' instead of anopaque 'void **'.
Update rn_inithead() users to switch to byte offset
kernel: No need to handle mbuf allocation failures if use M_WAITOK
kernel - Add per-process capability-based restrictions* This new system allows userland to set capability restrictions which turns off numerous kernel features and root accesses. These restricti
kernel - Add per-process capability-based restrictions* This new system allows userland to set capability restrictions which turns off numerous kernel features and root accesses. These restrictions are inherited by sub-processes recursively. Once set, restrictions cannot be removed. Basic restrictions that mimic an unadorned jail can be enabled without creating a jail, but generally speaking real security also requires creating a chrooted filesystem topology, and a jail is still needed to really segregate processes from each other. If you do so, however, you can (for example) disable mount/umount and most global root-only features.* Add new system calls and a manual page for syscap_get(2) and syscap_set(2)* Add sys/caps.h* Add the "setcaps" userland utility and manual page.* Remove priv.9 and the priv_check infrastructure, replacing it with a newly designed caps infrastructure.* The intention is to add path restriction lists and similar features to improve jailess security in the near future, and to optimize the priv_check code.
kernel/802_11: Remove some dead includes.
Remove a number of duplicate struct declarations in header files.
kernel: Rename BUILDING_WITH_KERNEL to KERNBUILDDIR.Fits better with e.g. KERNCONFDIR.Add a small paragraph in kmod.mk which was taken from FreeBSD.
kernel: Include <sys/types.h> directly. Do not rely on <sys/endian.h> to bring in all needed integer types.
netproto/802_11: Sync some channel definitions from FreeBSDSome of these channel definitions are required by the last commit asthey're being used in 'regdomain.c'.Also update 'wlan/ieee80211.c'
netproto/802_11: Sync some channel definitions from FreeBSDSome of these channel definitions are required by the last commit asthey're being used in 'regdomain.c'.Also update 'wlan/ieee80211.c' a bit so that it builds fine.
sys/netproto/smb: Do not trust <netinet/in.h> to bring in <sys/types.h>.<sys/types.h> will be removed from <netinet/in.h> in an upcoming commit.
if_clone: Extend if_clone_create() by an extra parameterCurrently, if_clone_create() accepts one caddr_t parameter that ispassed with the ifreq->ifr_data for the SIOCIFCREATE2 ioctl.Extend this
if_clone: Extend if_clone_create() by an extra parameterCurrently, if_clone_create() accepts one caddr_t parameter that ispassed with the ifreq->ifr_data for the SIOCIFCREATE2 ioctl.Extend this function by another caddr_t parameter so that callers couldpass extra data to the ifc->ifc_create() handler and won't conflict withthe SIOCIFCREATE2 ioctl calls. This extension will be used by tun(4)and tap(4) in a following commit.Suggested-by: dillonReviewed-by: dillon
ifconfig(8): Print more WPS attributes in verbose "list scan" output* Move WPS-related defines to a dedicated file <netproto/802_11/ieee80211_wps.h>* Add handlers for more WPS attributesObtain
ifconfig(8): Print more WPS attributes in verbose "list scan" output* Move WPS-related defines to a dedicated file <netproto/802_11/ieee80211_wps.h>* Add handlers for more WPS attributesObtained-from: FreeBSD (revision 343204)
kernel: Remove <sys/mplock2.h> from all files that do not need it.
<net/if_var.h>: Remove last explicit dependency on <sys/malloc.h>. These kernel sources pass M_NOWAIT flag to m_copym() and friends. Mark that it was for M_NOWAIT visibility.
kernel: Remove explicit dependencies on <sys/malloc.h> in headers. All except <net/if_var.h> for now, it needs decoupling in drm first. * Include <sys/malloc.h> in foo.c if they have kmalloc()/kfr
kernel: Remove explicit dependencies on <sys/malloc.h> in headers. All except <net/if_var.h> for now, it needs decoupling in drm first. * Include <sys/malloc.h> in foo.c if they have kmalloc()/kfree() calls. * Consistently check if MALLOC_DECLARE was declared before. * <sys/mountctl.h>: include <sys/thread.h> for _KERNEL_STRUCTURES too since the "struct journal" embeds "struct thread". * <sys/tty.h>: Only two kernel sources makes use of M_TTYS. * <sys/socketvar2.h>: Make it kernel only header.
kernel: Minor whitespace cleanup in few sources (part 2). Separated from next.
world/kernel: Use the powerof2() macro in various places.
<sys/time.h>: Add 3rd arg to timespecadd()/sub() and make them public.* Switch to the three argument versions of the timespecadd() and timespecsub() macros. These are now the predominant ones. Fr
<sys/time.h>: Add 3rd arg to timespecadd()/sub() and make them public.* Switch to the three argument versions of the timespecadd() and timespecsub() macros. These are now the predominant ones. FreeBSD, OpenBSD, NetBSD, and Solaris (albeit only for the kernel) have them.* Make those macros public too. This allows for a number of cleanups where they were defined locally.Pointed-out-by: zrjReviewed-by: dillon
ieee80211: set link state before notifying of link state changeUnknown link state is no good for any interface.Set the state before calling out.Now dhcpcd can see that wireless links are actually
ieee80211: set link state before notifying of link state changeUnknown link state is no good for any interface.Set the state before calling out.Now dhcpcd can see that wireless links are actually up
kernel: Stop including userland-only includes in kernel code (1/x).Specifically <stdbool.h>, <arpa/inet.h>, <dlfcn.h>, <limits.h>, and<unistd.h>.Only in hammer2's zlib it needed to be exchanged
kernel: Stop including userland-only includes in kernel code (1/x).Specifically <stdbool.h>, <arpa/inet.h>, <dlfcn.h>, <limits.h>, and<unistd.h>.Only in hammer2's zlib it needed to be exchanged with a more suitableheader. The rest could be removed.
12345678910>>...26