summaryrefslogtreecommitdiffstats
path: root/sys/netinet/libalias
Commit message (Collapse)AuthorAgeFilesLines
* MFC r318150:eugen2017-05-191-1/+3
| | | | | | | Fix translation of transit PPtP/GRE connections for ipfw nat/natd "global" case. PR: 218968 Approved by: ae, vsevolod (mentor)
* MFC r313821 r315277 r315286vangyzen2017-03-174-13/+43
| | | | | | | | | | | | | | Use inet_ntoa_r() instead of inet_ntoa() throughout the kernel. inet_ntoa() cannot be used safely in a multithreaded environment because it uses a static local buffer. Instead, use inet_ntoa_r() with a buffer on the caller's stack, except for KTR messages. KTR can correctly log the immediate integral values passed to it, as well as constant strings, but not non-constant strings, since they might change by the time ktrdump retrieves them. Therefore, use hex notation in KTR messages. Sponsored by: Dell EMC
* sys/net*: minor spelling fixes.pfg2016-05-034-5/+5
| | | | No functional change.
* netinet: for pointers replace 0 with NULL.pfg2016-04-151-3/+3
| | | | | | | | These are mostly cosmetical, no functional change. Found with devel/coccinelle. Reviewed by: ae. tuexen
* mdoc: fix rendering issuesbapt2015-04-261-3/+5
|
* It'll be okay to use LibAliasDetachHandlers() here, relyingglebius2013-12-251-1/+1
| | | | | on the fact that all handlers come from modules' bss and are followed by NODIR handler.
* Cleanup alias module handler register/unregister.glebius2013-12-254-186/+63
| | | | | | | | | | | | | | - Remove locking, since all module(9) events are running under &Giant. - Use TAILQ for protocol handlers and fix a bug which led to infinite cycle. Bug found in VirtualBox [1] - Simplify code everywhere. - Fix documentation. [1] https://www.virtualbox.org/pipermail/vbox-dev/2013-November/011936.html PR: 183792 [1] Submitted by: Valery Ushakov <uwe NetBSD.org> [1] Sponsored by: Nginx, Inc.
* Kill space at eols.glebius2013-12-257-125/+125
|
* Remove from kernel the "dll" code.glebius2013-12-252-17/+18
|
* Whitespace cleanup.glebius2013-12-252-79/+71
|
* Provide includes that are needed in these files, and before were readglebius2013-10-261-0/+1
| | | | | | | in implicitly via if.h -> if_var.h pollution. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* In m_megapullup() instead of reserving some space at the end of packet,glebius2013-03-171-10/+6
| | | | | | m_align() it, reserving space to prepend data. Reviewed by: mav
* Functions m_getm2() and m_get2() have different order of arguments,glebius2013-03-121-1/+1
| | | | | | | and that can drive someone crazy. While m_get2() is young and not documented yet, change its order of arguments to match m_getm2(). Sorry for churn, but better now than later.
* Remove LIBALIAS_LOCK_ASSERT(), including a couple with an uninitialzedglebius2013-03-111-6/+1
| | | | | | | argument, in code that isn't compiled in kernel. PR: kern/176667 Sponsored by: Nginx, Inc.
* - Move AUTHORS and ACKNOWLEDGEMENTS to the end of the page.glebius2013-01-311-33/+35
| | | | - Add myself to list of authors.
* Utilize m_get2() to get mbuf of appropriate size.glebius2013-01-301-15/+1
|
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-051-2/+2
| | | | | | | | | malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited manually
* Avoid potential bad pointer dereference.emaste2012-10-171-1/+1
| | | | | | | | Previously RuleAdd would leave entry->la unset for the first entry in the proxyList. Sponsored by: ADARA Networks MFC After: 1 week
* Fix typo: s/pakcet/packetkevlo2012-09-201-1/+1
|
* mdoc: avoid nested displays. Fixes mandoc warnings.joel2012-06-131-4/+2
|
* Fix style nit: don't use leading zero for dates in .Ddeadler2012-06-051-1/+1
| | | | | | Prompted by: brueffer Approved by: brueffer MFC after: 3 days
* Remove unused inclusion of curses.hmarcel2012-05-191-1/+0
|
* General mdoc(7) and typo fixes.gjb2012-05-111-3/+3
| | | | | | PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.ed2011-11-071-2/+2
| | | | | | The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
* 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.
* - General grammar and mdoc(7) fixes. [1] [2]gjb2011-07-041-65/+66
| | | | | | | | | | - While here, remove a paragraph about userspace operation that has been outdated for some time. [2] PR: 158623 Submitted by: Ben Kudak (kaduk % mit!edu) [1] Reviewed by: glebius [2] MFC after: 1 week
* Export AddLink() function from libalias. It can be used when customae2011-06-224-39/+127
| | | | | | | | | | | alias address needs to be specified. Add inbound handler to the alias_ftp module. It helps handle active FTP transfer mode for the case with external clients and FTP server behind NAT. Fix passive FTP transfer case for server behind NAT using redirect with external IP address different from NAT ip address. PR: kern/157957 Submitted by: Alexander V. Chernikov
* Document PKT_ALIAS_SKIP_GLOBAL option.ae2011-06-221-1/+11
| | | | Submitted by: Alexander V. Chernikov
* Implement "global" mode for ipfw nat. It is similar to natd(8)ae2011-06-141-0/+6
| | | | | | | | | | | | | | | | "globalport" option for multiple NAT instances. If ipfw rule contains "global" keyword instead of nat_number, then for each outgoing packet ipfw_nat looks up translation state in all configured nat instances. If an entry is found, packet aliased according to that entry, otherwise packet is passed unchanged. User can specify "skip_global" option in NAT configuration to exclude an instance from the lookup in global mode. PR: kern/157867 Submitted by: Alexander V. Chernikov (previous version) Tested by: Eugene Grosbein
* Sort alias mode flags in the increasing order.ae2011-06-141-11/+11
|
* Fix indentation.ae2011-06-071-4/+4
|
* LibAliasInit() should allocate memory with M_WAITOK flag. Modify itglebius2011-04-181-0/+5
| | | | and its callers.
* Fix typos - remove duplicate "the".brucec2011-02-211-1/+1
| | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* Standardise all Swinburne related copyright/licence statements throughout thelstewart2010-11-122-22/+16
| | | | | tree in preparation for another large code import. Swinburne University is the legal entity that owns copyright and the 2-clause BSD licence is acceptable.
* The university does not require that its CRICOS number be included in sourcelstewart2010-11-122-4/+2
| | | | | | code. Remove all references from the tree. MFC after: 3 days
* Don't spam the console with loaded modules during boot and/or duringn_hibma2010-11-031-1/+0
| | | | | | | startup of ppp. Note: This cannot be hidden behind bootverbose as this file is included from lib/libalias as well.
* mdoc: drop even more redundant .Pp callsuqs2010-10-191-1/+0
| | | | | | No change in rendered output, less mandoc lint warnings. Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp
* Don't use struct timezone.ed2010-08-081-4/+2
| | | | | The timezone structure acquired by gettimeofday() is not used at all. Just remove it.
* machine/cpu.h isn't appropriate for this file,so remove itimp2010-07-161-1/+0
|
* Remove extraneous semicolons, no functional changes.mbr2010-01-072-2/+2
| | | | | Submitted by: Marc Balmer <marc@msys.ch> MFC after: 1 week
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-281-2/+2
| | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
* Move inet_aton() (specular to inet_ntoa(), already present in libkern)attilio2009-11-121-104/+0
| | | | | | | | into libkern in order to made it usable by other modules than alias_proxy. Obtained from: Sandvine Incorporated Sponsored by: Sandvine Incorporated MFC: 1 week
* Close a stream file descriptor leak.brueffer2009-10-281-0/+1
| | | | | | PR: 138130 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
* What's the point of adjusting a checksum if we are going to toss thepiso2009-04-111-7/+4
| | | | packet? Anticipate the check/return code.
* Plug two bugs introduced with modules conversion:piso2009-04-112-7/+5
| | | | | | -UdpAliasIn(): correctly check return code after modules ran. -alias_nbt: in case of malformed packets (or some other unrecoverable error), toss the packet.
* Remove stale comments.piso2009-04-111-3/+0
|
* -don't pass down, to module's fingerprint function, unused data likepiso2009-04-0810-28/+34
| | | | | | a pointer to the ip header. -style -spacing
* This commit fixes the issue with alias_sctp.c. Norrs2009-02-141-2/+39
| | | | | | | | | | | | | | longer do we require SCTP to be in the kernel for the lib to be able to handle SCTP. We do this by moving the CRC32c checksum into libkern/crc32.c and then adjusting all routines to use the common methods. Note that this will improve the performance of iSCSI since they were using the old single 256 bit table lookup versus the slicing 8 algorithm (which gives a 4x speed up in CRC32c calculation :-D) Reviewed by:rwatson, gnn, scottl, paolo MFC after: 4 week? (assuming we MFC the alias_sctp changes)
* Add SCTP NAT support.piso2009-02-075-4/+2985
|\ | | | | | | Submitted by: CAIA (http://caia.swin.edu.au)
| * Import sctp nat support in ipfw obtained from CAIA - http://caia.swin.edu.au.piso2008-12-286-8/+3105
| |
OpenPOWER on IntegriCloud