summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* ng_nat - a netgraph(4) node, which does NATglebius2005-05-055-0/+359
|
* libalias is now buildable as kernel moduleglebius2005-05-053-0/+47
|
* Cast 64 bit quantity to uintmax_t to print it with %jx. This iswpaul2005-05-051-1/+1
| | | | | | technically a no-op since uintmax_t is uint64_t on all currently supported architectures, but we should use an explicit cast instead of depending on this obscure coincidence.
* More bits for kernel version:glebius2005-05-051-1/+107
| | | | | - copy inet_aton() from libc - disable getservbyname() lookup and accept only numeric port
* Always include alias.h before alias_local.hglebius2005-05-059-8/+11
|
* When used in kernel define NO_FW_PUNCH, NO_LOGGING, NO_USE_SOCKETS.glebius2005-05-051-0/+9
|
* Fix argument order for bcopy() in last commit.glebius2005-05-051-1/+1
| | | | | Noticed by: njl Pointy hat to: glebius
* Use bcopy() instead of memmove().glebius2005-05-051-1/+1
|
* Hide fflush(3) under ifdef DEBUG.glebius2005-05-051-2/+2
|
* Things required to build libalias as kernel module:glebius2005-05-052-0/+74
| | | | | | | | | | | - kernel module declarations and handler. - macros to map malloc(3) calls to malloc(9) ones. - malloc(9) declarations. - call finishoff() from module handler MOD_UNLOAD case instead of atexit(3). - use panic(9) instead of abort(3) - take time from time_second instead of gettimeofday(2) - define INADDR_NONE
* Add NO_USE_SOCKETS knob, which cuts off functionality socket binding.glebius2005-05-052-8/+18
|
* Add NO_LOGGING knob, which cuts off functionality of debug logging to a file.glebius2005-05-053-15/+19
|
* Play with includes so that libalias can be compiled both as userlandglebius2005-05-0512-33/+159
| | | | library and kernel module.
* Add quirk for TEAC USB floppy drives.dwhite2005-05-051-0/+7
|
* Move the pcb variable initialization earlier. This is cosmetic here, butpeter2005-05-051-2/+2
| | | | | | in as-yet uncommitted code for 32 bit binary compatability on 64 bit kernels, some of the 32 bit registers come from the pcb. Moving the initialization here means fill_regs32() etc are laid out the same.
* Remove unused (besides being initialized) variable.peter2005-05-051-2/+0
|
* Use %jx instead of %qx to silence compiler warning on amd64.wpaul2005-05-051-1/+1
|
* Fix breakage on alpha.takawata2005-05-051-2/+2
| | | | Pointed out by: hrs via IRC
* Only check signal event, single threading event shouldn't be reported.davidxu2005-05-051-1/+2
|
* Avoid sleeping with mutex held in kern_ndis.c.wpaul2005-05-054-37/+34
| | | | | | | | | | | | | | | Remove unused fields from ndis_miniport_block. Fix a bug in KeFlushQueuedDpcs() (we weren't calculating the kq pointer correctly). In if_ndis.c, clear the IFF_RUNNING flag before calling ndis_halt_nic(). Add some guards in kern_ndis.c to avoid letting anyone invoke ndis_get_info() or ndis_set_info() if the NIC isn't fully initialized. Apparently, mdnsd will sometimes try to invoke the ndis_ioctl() routine at exactly the wrong moment (to futz with its multicast filters) when the interface comes up, and can trigger a crash unless we guard against it.
* Remove extranaous free() of ASCII filename from NdisOpenFile().wpaul2005-05-051-1/+0
| | | | | | | | | | | | | | Oh, one additional change I forgot to mention in the last commit: NdisOpenFile() was broken in the case for firmware files that were pre-loaded as modules. When searching for the module in NdisOpenFile(), we would match against a symbol name, which would contain the string we were looking for, then save a pointer to the linker file handle. Later, in NdisMapFile(), we would refer to the filename hung off this handle when trying to find the starting address symbol. Only problem is, this filename is different from the embedded symbol name we're searching for, so the mapping would fail. I found this problem while testing the AirGo driver, which requires a small firmware file.
* This commit makes a bunch of changes, some big, some not so big.wpaul2005-05-059-464/+950
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove the old task threads from kern_ndis.c and reimplement them in subr_ntoskrnl.c, in order to more properly emulate the Windows DPC API. Each CPU gets its own DPC queue/thread, and each queue can have low, medium and high importance DPCs. New APIs implemented: KeSetTargetProcessorDpc(), KeSetImportanceDpc() and KeFlushQueuedDpcs(). (This is the biggest change.) - Fix a bug in NdisMInitializeTimer(): the k_dpc pointer in the nmt_timer embedded in the ndis_miniport_timer struct must be set to point to the DPC, also embedded in the struct. Failing to do this breaks dequeueing of DPCs submitted via timers, and in turn breaks cancelling timers. - Fix a bug in KeCancelTimer(): if the timer is interted in the timer queue (i.e. the timeout callback is still pending), we have to both untimeout() the timer _and_ call KeRemoveQueueDpc() to nuke the DPC that might be pending. Failing to do this breaks cancellation of periodic timers, which always appear to be inserted in the timer queue. - Make use of the nmt_nexttimer field in ndis_miniport_timer: keep a queue of pending timers and cancel them all in ndis_halt_nic(), prior to calling MiniportHalt(). Also call KeFlushQueuedDpcs() to make sure any DPCs queued by the timers have expired. - Modify NdisMAllocateSharedMemory() and NdisMFreeSharedMemory() to keep track of both the virtual and physical addresses of the shared memory buffers that get handed out. The AirGo MIMO driver appears to have a bug in it: for one of the segments is allocates, it returns the wrong virtual address. This would confuse NdisMFreeSharedMemory() and cause a crash. Why it doesn't crash Windows too I have no idea (from reading the documentation for NdisMFreeSharedMemory(), it appears to be a violation of the API). - Implement strstr(), strchr() and MmIsAddressValid(). - Implement IoAllocateWorkItem(), IoFreeWorkItem(), IoQueueWorkItem() and ExQueueWorkItem(). (This is the second biggest change.) - Make NdisScheduleWorkItem() call ExQueueWorkItem(). (Note that the ExQueueWorkItem() API is deprecated by Microsoft, but NDIS still uses it, since NdisScheduleWorkItem() is incompatible with the IoXXXWorkItem() API.) - Change if_ndis.c to use the NdisScheduleWorkItem() interface for scheduling tasks. With all these changes and fixes, the AirGo MIMO driver for the Belkin F5D8010 Pre-N card now works. Special thanks to Paul Robinson (paul dawt robinson at pwermedia dawt net) for the loan of a card for testing.
* Backout part of rev 1.71, which breaks the interfaces on IBM/Intel bladedwhite2005-05-051-17/+0
| | | | | | | servers. PR: kern/68445 MFC after: 7 days
* Turn on PCB_FULLCTX in set_regs to fully restore contextdavidxu2005-05-041-2/+1
| | | | set by debugger.
* - We need to inhert the OBJ_NEEDGIANT flag from the original object injeff2005-05-041-0/+1
| | | | | | vm_object_split(). Spotted by: alc
* if_mtu not ifp_mtu.mlaier2005-05-041-1/+1
|
* Change m_uiotombuf so it will accept offset at which data should be copiedemax2005-05-046-7/+10
| | | | | | | | | | to the mbuf. Offset cannot exceed MHLEN bytes. This is currently used to fix Ethernet header alignment problem on alpha and sparc64. Also change all users of m_uiotombuf to pass proper offset. Reviewed by: jmg, sam Tested by: Sten Spans "sten AT blinkenlights DOT nl" MFC after: 1 week
* Fix a bug in NFS/TCP where retransmissions would not reliably happenps2005-05-041-3/+11
| | | | | | | if the server rebooted or tore down the connection for any reason. Found by: Jonathan Noack. Submitted by: Mohan Srinivasan.
* Bring back fix from rev. 1.28 which was lost during the import.mlaier2005-05-041-2/+2
|
* Combine rev. 1.29 and 1.30 to something that will make sense for futuremlaier2005-05-041-1/+6
| | | | imports.
* Make LINT happy.mlaier2005-05-042-9/+9
|
* Make smbfs capable to use 16bit char set in filenames.takawata2005-05-043-11/+31
| | | | PR:78110
* If we don't get a suggested MTU during path MTU discoveryandre2005-05-042-18/+40
| | | | | | | | look up the packet size of the packet that generated the response, step down the MTU by one step through ip_next_mtu() and try again. Suggested by: dwmalone
* Cleanup IPFW2 ifdefs.glebius2005-05-041-58/+0
|
* Makefile is not needed here.glebius2005-05-041-14/+0
|
* Add another step of 1280 (gif(4) tunnels) to ip_next_mtu().andre2005-05-041-2/+2
|
* IPFW version 2 is the only option in HEAD and RELENG_5.glebius2005-05-043-24/+0
| | | | Thus, cleanup unnecessary now ifdefs.
* Pass icmp_error() the MTU argument directly instead ofandre2005-05-045-35/+21
| | | | | an interface pointer. This simplifies a couple of uses and removes some XXX workarounds.
* Introduce MAC Framework and MAC Policy entry points to label and controlrwatson2005-05-0414-10/+564
| | | | | | | | | | | | | | | | | | | | | | access to POSIX Semaphores: mac_init_posix_sem() Initialize label for POSIX semaphore mac_create_posix_sem() Create POSIX semaphore mac_destroy_posix_sem() Destroy POSIX semaphore mac_check_posix_sem_destroy() Check whether semaphore may be destroyed mac_check_posix_sem_getvalue() Check whether semaphore may be queried mac_check_possix_sem_open() Check whether semaphore may be opened mac_check_posix_sem_post() Check whether semaphore may be posted to mac_check_posix_sem_unlink() Check whether semaphore may be unlinked mac_check_posix_sem_wait() Check whether may wait on semaphore Update Biba, MLS, Stub, and Test policies to implement these entry points. For information flow policies, most semaphore operations are effectively read/write. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Sponsored by: DARPA, McAfee, SPARTA Obtained from: TrustedBSD Project
* -introduce net.bpf sysctl instead of the less intuitive debug.*csjp2005-05-041-8/+10
| | | | | | | | | | | debug.bpf_bufsize is now net.bpf.bufsize debug.bpf_maxbufsize is now net.bpf.maxbufsize -move function prototypes for bpf_drvinit and bpf_clone up to the top of the file with the others -assert bpfd lock in catchpacket() and bpf_wakeup() MFC after: 2 weeks
* A patch to support Palm Tungsten T via USB-Cradle.julian2005-05-041-17/+76
| | | | | | not suer where it comes from but suspect kimoto at ohnolab.org MFC after: 1 week
* Move definitions of 'struct kuser' and 'struct ksem' from uipc_sem.crwatson2005-05-033-19/+111
| | | | | | | | | | | to ksem.h so that they are accessible from the MAC Framework for the purposes of labeling and enforcing additional protections. #error if these are included without _KERNEL, since they are not intended (nor installed) for user application use. Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net> Sponsored by: DARPA, SPARTA Obtained from: TrustedBSD Project
* Bump __FreeBSD_version for pf 3.7 and inform about user visible changes.mlaier2005-05-031-1/+1
|
* Resolve conflicts created during the import of pf 3.7 Some features aremlaier2005-05-0311-1333/+2541
| | | | | | | | missing and will be implemented in a second step. This is functional as is. Tested by: freebsd-pf, pfsense.org Obtained from: OpenBSD X-MFC after: never (breaks API/ABI)
* - Initialize vfslocked correctly early enough for MAC to compile.jeff2005-05-031-5/+4
| | | | | | | | - Fix one place where we explicitly drop Giant! Pointy hat to: me Submitted by: Max Laier Warned by: Tinderbox
* - move to SCHED_4BSD per jeffr's comments on SCHED_ULE's stategrehan2005-05-031-5/+4
| | | | | | - enable MSDOSFS - ehci is stable on the powerbook - modules have been working for a long time.
* - Add a new object flag "OBJ_NEEDSGIANT". We set this flag if thejeff2005-05-034-4/+14
| | | | | | | underlying vnode requires Giant. - In vm_fault only acquire Giant if the underlying object has NEEDSGIANT set. - In vm_object_shadow inherit the NEEDSGIANT flag from the backing object.
* - Set the v_object pointer after a successful VOP_OPEN(). This isn't ajeff2005-05-031-1/+2
| | | | | | | perfect solution as the lower vm object can change at unpredictable times if our lower vp happens to be on another unionfs, etc. Submitted by: Oleg Sharoiko <os@rsu.ru>
* - Don't restrict the softdep stats to DEBUG kernels, they cost nothing tojeff2005-05-031-11/+7
| | | | | | | | | export. This was happening anyway since this file manually sets DEBUG. - Add a sysctl for the number of items on the worklist. - Use a more canonical loop restart in softdep_fsync_mountdev, it saves some code at the expense of a goto and makes me worry less about modifying a variable that should be private to the TAILQ_FOREACH_SAFE macro.
* - Remove two mtx_asserts that can incorrectly trigger ifjeff2005-05-031-4/+0
| | | | | | | | devstat_end_transaction is called from a fast interrupt. Presently there is no way for mtx_assert to determine that we're not executing in a real thread context. Submitted by: jhusted@isilon.com
OpenPOWER on IntegriCloud