summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_mppc.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove some more alignment constraints.mav2010-03-311-3/+3
|
* If source mbuf chain consists of only one mbuf, use it directly as sourcemav2009-01-181-34/+51
| | | | buffer to avoid extra copying.
* Use m_unshare()+m_copyback() instead of m_freem()+m_devget() to keepmav2009-01-181-22/+23
| | | | | original mbuf chain headers. It can be less efficient in some cases, but it looks better then mess of copying headers into the nonempty chain.
* Unroll two loops of SHA1Update(). 60 bytes of static memory is not a price.mav2008-12-161-9/+12
|
* Carefully handle memory errors to keep peers compression/encryption statemav2008-12-061-11/+24
| | | | | consistent. There are some cases reported where peers fatally getting out of sync without any visible reason. I hope this solve the problem.
* Fix a number of style issues in the MALLOC / FREE commit. I've tried todes2008-10-231-1/+2
| | | | | be careful not to fix anything that was already broken; the NFSv4 code is particularly bad in this respect.
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-231-7/+6
| | | | MFC after: 3 months
* Fix build with NETGRAPH_MPPC_COMPRESSION but without NETGRAPH_MPPC_ENCRYPTION.mav2007-05-181-0/+4
| | | | 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)
* 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)
* In preparation for making the modules actually use opt_*.h filesyar2005-10-141-0/+6
| | | | | | | | | | | | | | | | | provided in the kernel build directory, fix modules that were failing to build this way due to not quite correct kernel option usage. In particular: ng_mppc.c uses two complementary options, both of which are listed in sys/conf/files. Ideally, there should be a separate option for including ng_mppc.c in kernel build, but now only NETGRAPH_MPPC_ENCRYPTION is usable anyway, the other one requires proprietary files. nwfs and smbfs were trying to ensure they were built with proper network components, but the check was rather questionable. Discussed with: ru
* MPPC node is not thread safe.glebius2005-06-031-0/+3
| | | | | | | PR: kern/79990 Reported by: Arcadiy Ivanov Reported by: atckoe.zlo @ gmail.com MFC after: 1 week
* /* -> /*- for license, minor formatting changesimp2005-01-071-2/+3
|
* Switch to using C99 sparse initialisers for the type methods array.julian2004-05-291-12/+8
| | | | | | | | Should make no binary difference. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Reviewed by: Harti Brandt <harti@freebsd.org> MFC after: 1 week
* Take the rc4 code out of ng_mppc module so we don't fail to load whenambrisko2003-02-051-0/+5
| | | | | | | we have the rc4 code already in the kernel (via wlan stuff or awi). Add a dependency on the rc4 module so if it doesn't exist then load it. Reviewed by: archie
* Fix two bugs:archie2002-12-141-12/+27
| | | | | | | | (a) Save control message return address only if NGM_MPPC_CONFIG_DECOMP (b) Properly count the number of required re-key operations when we loose synchronization and have to resync MFC after: 3 days
* Don't use "NULL" when "0" is really meant.archie2002-08-221-2/+2
|
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
* Add support for 56 bit MPPE encryption.archie2001-12-151-7/+9
| | | | MFC after: 3 days
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-8/+8
| | | | also don't use ANSI string concatenation.
* KSE Milestone 2julian2001-09-121-0/+3
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Fix some memory leaksjulian2001-01-101-18/+24
| | | | Add memory leak detection assitance.
* Part 2 of the netgraph rewrite.julian2001-01-081-16/+15
| | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org
* Rewrite of netgraph to start getting ready for SMP.julian2001-01-061-51/+33
| | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems.
* Divorce the kernel binary ABI version number from the messagejulian2000-12-181-1/+1
| | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change)
* Reviewed by: Archie@freebsd.orgjulian2000-12-121-3/+4
| | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-)
* Add the use of M_ZERO to netgraph.dwmalone2000-11-181-2/+1
| | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Submitted by: archie Approved by: archie
* Since neither archie nor I work at Whistle any more, change our emailjulian2000-10-241-1/+1
| | | | | | addresses to be the more usefu @freebsd.org ones so we can keep getting bug-reports. - man pages to follow..
* Remove unnecessary #include's as reported by phk's script.archie2000-09-221-1/+0
|
* Allocate all memory (including within node constructors) with M_NOWAITarchie2000-09-211-1/+1
| | | | instead of M_WAITOK, to allow for maximum flexibility.
* Allocate memory with M_NOWAIT instead of M_WAITOK because we couldarchie2000-09-211-1/+1
| | | | be called in an interrupt context.
* Two simple changes to the kernel internal API for netgraph modules,julian2000-04-281-2/+3
| | | | | | | to support future work in flow-control and 'packet reject/replace' processing modes. reviewed by: phk, archie
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* A netgraph node that implements Microsoft Point-to-Point compressionarchie2000-04-091-0/+797
(MPPC) and Microsoft Point-to-Point encryption (MPPE) protocols. Note: the MPPC part is disabled as it requires proprietary files. Obtained from: Whistle source tree
OpenPOWER on IntegriCloud