summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_l2tp.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix circular math macro.glebius2014-01-031-1/+1
| | | | | | Submitted by: Lutz Donnerhacke via Dmitry Luhtionov German lesson at: http://lutz.donnerhacke.de/Blog/Der-Fluch-der-Stabilitaet PR: 146082
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-051-7/+7
| | | | | | | | | malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited manually
* Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.ed2011-11-071-1/+1
| | | | This means that their use is restricted to a single C file.
* Node constructor methods are supposed to be called in syscallglebius2011-04-181-3/+1
| | | | | | | context always. Convert nodes to consistently use M_WAITOK flag for memory allocation. Reviewed by: julian
* Make ng_l2tp irrelevant to data alignment.mav2010-03-311-15/+31
|
* Add memmove() to the kernel, making the kernel compile with Clang.ed2009-02-281-3/+0
| | | | | | | | | | | | When copying big structures, LLVM generates calls to memmove(), because it may not be able to figure out whether structures overlap. This caused linker errors to occur. memmove() is now implemented using bcopy(). Ideally it would be the other way around, but that can be solved in the future. On ARM we don't do add anything, because it already has memmove(). Discussed on: arch@ Reviewed by: rdivacky
* Fix typo. Clear session stats instead of config and part of stats.mav2008-11-221-1/+1
| | | | | Found with: Coverity Prevent(tm) CID: 2472
* 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-5/+4
| | | | MFC after: 3 months
* Don't use memcpy() to copy several bytes.mav2008-07-281-40/+22
| | | | | Store IDs is host order. It is not so important to bloat code for it. Combine m_adj() and M_PREPEND() into single M_PREPEND().
* Add session ID hashing to speedup incoming packets dispatch in casemav2008-03-161-38/+47
| | | | | of many connections working via the same tunnel. For example, in case of full "client <-> LAC <-> LNS" setup.
* Addition to the previous commit. Release inproc in case of memory error.mav2008-03-091-0/+1
|
* To avoid control data losses do not acknowledge recieving of control packetmav2008-03-081-54/+44
| | | | | | if netgraph reported error while delivering to destination. Reset 'next send' counter to the last requested by peer on ack timeout to resend all subsequest packets after lost one again without additional hints.
* Increase control channel xmit queue to 128 packets.mav2007-12-121-1/+1
| | | | | | Previous value 16 was too small for real LAC as temporal activity spike cound easily overflow queue demanding tunnel disconnection due to possible state inconsistency.
* Protect struct seq with mutex.mav2007-10-121-17/+72
| | | | Approved by: glebius (mentor)
* Remove one unneded assertion. It is also checked inmav2007-10-121-5/+0
| | | | | | ng_l2tp_seq_check(). Approved by: glebius (mentor)
* Replace single rcvdata with 3 distinct to simplify code andmav2007-10-121-74/+77
| | | | | | reduce stack usage. Approved by: mentor (glebius)
* Remove duplicate variables.mav2007-10-121-11/+3
|
* 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)
* Use the ISO standard function variable vs. a GCC'ism.obrien2005-08-101-4/+4
|
* - Use ng_callout() instead of callout_reset(9).glebius2005-01-111-93/+36
| | | | | | | | | - Use callout_pending() instead of our own flags. - Remove home-grown protection of node, which has a scheduled callout(). - Remove spl(9) calls. Tested by: bz
* /* -> /*- for license, minor formatting changesimp2005-01-071-2/+1
|
* Implement minimalistic L2TP sessions statistics and correct man pagebz2004-08-031-2/+83
| | | | | | | for L2TP tunnel statistics (which do not take an argument sessionID). Reviewed by: archie Approved by: pjd (mentor)
* add a new control message to set sequence numbers on an uninitialized node.bz2004-08-031-1/+62
| | | | | Reviewed by: archie Approved by: pjd (mentor)
* Correct L2TP header offset handling:bz2004-08-031-2/+2
| | | | | | | | | - according to RFC2661 an offset size of 0 is allowed. - when skipping offset padding do not forget to also skip the 2 octets of the offset size field. Reviewed by: archie Approved by: pjd (mentor)
* Having moved metadata usage to mbuf tags, remove code that supportsjulian2004-06-261-2/+1
| | | | | | the old way of doing it. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
* Switch to using C99 sparse initialisers for the type methods array.julian2004-05-291-12/+9
| | | | | | | | Should make no binary difference. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Reviewed by: Harti Brandt <harti@freebsd.org> MFC after: 1 week
* Rename internal structure to fix cut & paste error.archie2004-04-041-3/+3
| | | | | Submitted by: Bjoern A. Zeeb <bzeeb+freebsd@zabbadoz.net> MFC After: 3 days
* Don't use ovbcopy().des2003-04-041-1/+1
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-7/+7
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-7/+7
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* o Untangle the confusion with the malloc flags {M_WAITOK, M_NOWAIT} andbmilekic2002-12-191-5/+5
| | | | | | | | | | the mbuf allocator flags {M_TRYWAIT, M_DONTWAIT}. o Fix a bpf_compat issue where malloc() was defined to just call bpf_alloc() and pass the 'canwait' flag(s) along. It's been changed to call bpf_alloc() but pass the corresponding M_TRYWAIT or M_DONTWAIT flag (and only one of those two). Submitted by: Hiten Pandya <hiten@unixdaemons.com> (hiten->commit_count++)
* Don't use "NULL" when "0" is really meant.archie2002-08-221-1/+1
|
* New L2TP netgraph node type.archie2002-08-201-0/+1479
Obtained from: Packet Design
OpenPOWER on IntegriCloud