summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
Commit message (Collapse)AuthorAgeFilesLines
* Mark ng_h4(4) as not MPSAFE and disconnect it from the build for now.emax2007-07-101-1/+1
| | | | Approved by: re (rwatson)
* These modules depend on usb, make that explicitimp2007-06-232-0/+4
| | | | Approved by: re@
* Fix various compilation warnings for gcc-4.2.mjacob2007-06-231-3/+3
| | | | Approved by: re (bruce)
* Replace sosend() with direct call to .pru_send method on theemax2007-06-211-2/+2
| | | | | | | | L2CAP socket. This is to avoid LOR with sx(9) lock in sblock() called from sosend_generic(). Approved by: re (kensmith) MFC after: 1 week
* Fix build problem caused by a set of typos.delphij2007-06-191-6/+6
| | | | | Reported by: tinderbox Approved by: re (mux)
* Finish removing usb_port.h compat macros.imp2007-06-182-26/+71
|
* Remove two more instances of the USBDEV() macro.ru2007-06-131-2/+2
|
* Add missing ng_uncallout() on node shutdown.mav2007-06-131-0/+2
| | | | Approved by: glebius (mentor)
* Catch up with USB cleanups and fix the worldemax2007-06-131-21/+15
|
* Eliminate usb_thread_t.imp2007-06-121-4/+5
|
* Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate fromimp2007-06-122-6/+4
| | | | usb_port.h. They aren't needed, and are a legacy of this code's past.
* Silence a gcc warning in a more canonical way (evl = NULL rather than &evl).imp2007-06-111-2/+1
| | | | I saw warnings here at one point on the arm build.
* Expand USB_ATTACH_SETUP inline.imp2007-06-092-8/+2
| | | | Kill devinfo stuff.
* Despite several examples in the kernel, the third argument ofdwmalone2007-06-042-5/+5
| | | | | | | | | | | | | sysctl_handle_int is not sizeof the int type you want to export. The type must always be an int or an unsigned int. Remove the instances where a sizeof(variable) is passed to stop people accidently cut and pasting these examples. In a few places this was sysctl_handle_int was being used on 64 bit types, which would truncate the value to be exported. In these cases use sysctl_handle_quad to export them and change the format to Q so that sysctl(1) can still print them.
* No need to update link queue stats when round-robin algorithm enabled.mav2007-06-041-9/+10
| | | | Approved by: glebius (mentor)
* Partially back out rev. 1.127, to restore broken functionality. Thisglebius2007-06-011-5/+4
| | | | | | should be redesigned, but better enter RELENG_7 with a working ngctl(8). Agreed by: julian
* Universally adopt most conventional spelling of acquire.rwatson2007-05-272-2/+3
|
* Add support for setmode and settarget messages.mav2007-05-222-0/+99
| | | | Approved by: glebius (mentor)
* Allow node to bypass traffic while no alias address defined.mav2007-05-221-9/+11
| | | | Approved by: glebius (mentor)
* Fix build with NETGRAPH_MPPC_COMPRESSION but without NETGRAPH_MPPC_ENCRYPTION.mav2007-05-181-0/+4
| | | | Approved by: glebius (mentor)
* Help ng_fec deal with multicast addresses.dwmalone2007-05-181-2/+77
| | | | | | | | | | | | | | | | | | | While ng_fec called the ioctl to let interfaces in the bundle know the list of multicast addresses had changed, it never actually updated that list on the interfaces in the bundle. Consequently, the multicast filters could be programmed incorrectly. if_lagg does this correctly, by maintaining a list of addresses that it has added to interfaces in the bundle. This commit basically takes the if_lagg code and adds it to ng_fec. A version of this patch for RELENG_6 has fixed some problems with IPv6 ND over ng_fec. This is probably the problem in PR 107523. PR: 107523 Tested by: Rob Gallagher <robert.gallagher@heanet.ie> Obtained from: if_lagg MFC after: 3 weeks
* Fix small copy/paste mistake.mav2007-05-171-1/+1
|
* Style cleanup.mav2007-05-161-101/+90
| | | | Approved by: glebius (mentor)
* A node that implements various traffic shaping and rate limiting algorithms.mav2007-05-152-0/+867
| | | | Approved by: glebius (mentor)
* Performance optimization of the "encryption without compression" case bymav2007-05-111-70/+103
| | | | | | | avoiding memory allocation and data copying. Encrypting directly at the original mbuf chain. Approved by: glebius (mentor)
* Reduce network stack oddness: implement .pru_sockaddr and .pru_peeraddrrwatson2007-05-111-3/+3
| | | | | | | | protocol entry points using functions named proto_getsockaddr and proto_getpeeraddr rather than proto_setsockaddr and proto_setpeeraddr. While it's true that sockaddrs are allocated and set, the net effect is to retrieve (get) the socket address or peer address from a socket, not set it, so align names to that intent.
* Avoid extra rc4_init() when ng_mppc_updatekey() going to do it anyway.mav2007-05-041-5/+7
| | | | Approved by: glebius (mentor)
* Compact code a bitmav2007-05-041-5/+3
| | | | Approved by: glebius (mentor)
* Make coherency counter 12bit as it shouldmav2007-05-041-4/+6
| | | | Approved by: glebius (mentor)
* Fix small mistake (sizeof(pad2) instead of sizeof(pad1))mav2007-05-041-1/+1
| | | | Approved by: glebius (mentor)
* Remove unneded bzero().mav2007-05-041-1/+0
| | | | | | SHA1Final() does not require clean buffer. Approved by: glebius (mentor)
* Avoid false assertion on transmit and delayed ack timeout with enabled ↵mav2007-04-241-23/+34
| | | | | | | | | invariants. Replace callout_pending() by callout_active() to remove race window. Reviewed by: archie Approved by: glebius (mentor)
* Global xmit stats calculation fix.mav2007-04-231-0/+4
| | | | Approved by: glebius (mentor)
* Added m_tag_copy_chain() call to copy original outgoing packet tags to all ofmav2007-04-201-0/+1
| | | | | | | it's fragments. Reviewed by: archie Approved by: glebius (mentor)
* Optimized packet distribution plan for the equal links case. Do notmav2007-04-201-13/+20
| | | | | | | | split packet on fragments smaller then MP_MIN_FRAG_LEN to reduce total overhead. Reviewed by: archie Approved by: glebius (mentor)
* - Changed sequence numbers processing to avoid incorrect timeout waitingmav2007-04-201-66/+65
| | | | | | | | | | | | when one of links is inactive and have stale sequence number. To avoid this sequence numbers of all links are getting updated on every successful packet reassembling. - ng_ppp_bump_mseq function created to simplify code. - ng_ppp_frag_drop function separated from ng_ppp_frag_process to simplify code. Reviewed by: archie Approved by: glebius (mentor)
* - Fixed mistakes in latency and xmitBytes calculation mathmav2007-04-201-6/+22
| | | | | | | | | | | | which lead to ineffective multilink packet distribution plans. - Changed bytesInQueue calculation math to have more precise information about links utilization. - Taken rough account of the link overhead. Better way to do it could be to get exact overhead from user-level, but I have not done it to keep binary compatibility. Reviewed by: archie Approved by: glebius (mentor)
* We don't need spinning locks here. Change them to the adaptive mutexes. Thiswkoszek2007-03-311-6/+6
| | | | | | | change should bring no performance decrease, as it did not in my tests. Reviewed by: julian, glebius Approved by: cognet (mentor)
* Instead of direct manipulation on queue and worklist mutexes, bring macroswkoszek2007-03-301-27/+40
| | | | | | | | for doing this job. This change will make it easy to migrate from using spinning locks to adaptive ones. Reviewed by: glebius, julian Approved by: cognet (mentor)
* Try to silence Coverity by adding (void) in front of function call.emax2007-03-281-1/+11
| | | | | | | Also add a comment, explaining why return value is not being checked. Requested by: netchild MFC after: 1 week
* Bump maximum number of interface hooks to the maximum possible value.glebius2007-03-282-1/+2
| | | | | | | | This will increase the memory consumption for more than 1 Mb, but this is required for operation on multiinterface access concentrators running mpd. Requested by: Alexander Motin
* o Update a comment: sonewconn() lives in uipc_socket.c now.maxim2007-03-261-1/+1
|
* Implement reference counting for ifmultiaddr, in_multi, and in6_multibms2007-03-201-3/+18
| | | | | | | | | | | | | | | | | | | structures. Detect when ifnet instances are detached from the network stack and perform appropriate cleanup to prevent memory leaks. This has been implemented in such a way as to be backwards ABI compatible. Kernel consumers are changed to use if_delmulti_ifma(); in_delmulti() is unable to detect interface removal by design, as it performs searches on structures which are removed with the interface. With this architectural change, the panics FreeBSD users have experienced with carp and pfsync should be resolved. Obtained from: p4 branch bms_netdev Reviewed by: andre Sponsored by: Garance A Drosehn Idea from: NetBSD MFC after: 1 month
* Prefer more traditional spellings of some words in comments.rwatson2007-03-181-15/+15
|
* oops committed the wrong patch.julian2007-03-101-6/+10
| | | | try this one..
* ng_apply_item should be void. It is called from the interrupt source orjulian2007-03-091-14/+85
| | | | | | | | | | from whoever has dequeued the item from the queue. Generally they have no interest in the result, and even if it is called by the queuer, it should still pretend that it was queued. The queuer should be assuming that the call was queued and giving them the false confidence that they are getting status leads to hard to find bugs. Make it a void and remove all the code that tried to return status through it.
* ng_send_fn() can return with an error, the function of interestru2007-03-081-1/+2
| | | | | | | will never be called and OACTIVE will never be reset. Fix this. Submitted by: Vsevolod Lobko MFC after: 3 days
* Ensure message passed to "settimestamp" and "setcounter" is the rightemaste2007-03-021-1/+9
| | | | | | length. Use NULL instead of 0. Submitted by: glebius, ru
* Add "setcounter" and "getcounter" messages, providing the the abilityemaste2007-03-022-0/+137
| | | | | | | | | | | | | to embed up to four counters in outgoing packets. The message specifies the offset at which the counter should be inserted as well as the parameters of the counter. Example usage: ngctl msg src0: setcounter \ '{ index=0 offset=0x40 flags=1 width=4 increment=1 max_val=12345 }' Sponsored by: Sandvine Incorporated
* Add "settimestamp" and "gettimestamp" messages, providing the the abilityemaste2007-03-012-5/+139
| | | | | | | | | | | | | to embed a timestamp (struct timeval) in outgoing packets. The message specifies the offset at which the timestamp should be inserted. NG_SOURCE(4) gives an example usage that queues an ICMP packet. Using that example, the following command will insert a timestamp in the ICMP's data payload: ngctl msg src0: settimestamp '{ offset=0x2a flags=1 }' Sponsored by: Sandvine Incorporated
OpenPOWER on IntegriCloud