|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0 |
|
| #
738ebfa0 |
| 14-May-2021 |
Lutz Donnerhacke <[email protected]> |
libalias: Style cleanup
libalias is a convolut of various coding styles modified by a series of different editors enforcing interesting convetions on spacing and comments.
This patch is a baseline
libalias: Style cleanup
libalias is a convolut of various coding styles modified by a series of different editors enforcing interesting convetions on spacing and comments.
This patch is a baseline to start with a perfomance rework of libalias. Upcoming patches should be focus on the code, not on the style. That's why most annoying style errors should be fixed beforehand.
Reviewed by: hselasky Discussed by: emaste Differential Revision: https://reviews.freebsd.org/D30259
(cherry picked from commit effc8e57fbf03d7f1423c662caf2b63f0d1d21a9)
At some places the ASSERT was inserted before variable declarations are finished. This is fixed now.
Reported by: kib Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D30282
(cherry picked from commit 2e6b07866f9e1520626a1523f6609cc411bdda1c)
show more ...
|
|
Revision tags: release/13.0.0 |
|
| #
bc596e56 |
| 19-Jan-2021 |
Alex Richardson <[email protected]> |
libalias: Fix -Wcast-align compiler warnings
This fixes -Wcast-align warnings caused by the underaligned `struct ip`. This also silences them in the public functions by changing the function signatu
libalias: Fix -Wcast-align compiler warnings
This fixes -Wcast-align warnings caused by the underaligned `struct ip`. This also silences them in the public functions by changing the function signature from char * to void *. This is source and binary compatible and avoids the -Wcast-align warning.
Reviewed By: ae, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D27882
show more ...
|
|
Revision tags: release/12.2.0 |
|
| #
662c1305 |
| 01-Sep-2020 |
Mateusz Guzik <[email protected]> |
net: clean up empty lines in .c and .h files
|
|
Revision tags: release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
| #
fe267a55 |
| 27-Nov-2017 |
Pedro F. Giffuni <[email protected]> |
sys: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error pro
sys: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended.
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
fdb727f4 |
| 13-Mar-2017 |
Conrad Meyer <[email protected]> |
alias_proxy.c: Fix accidental error quashing
This was introduced on accident in r165243, when return sites were unified to add a lock around LibAliasProxyRule().
PR: 217749 Submitted by: Svyatosla
alias_proxy.c: Fix accidental error quashing
This was introduced on accident in r165243, when return sites were unified to add a lock around LibAliasProxyRule().
PR: 217749 Submitted by: Svyatoslav <razmyslov at viva64.com> Sponsored by: Viva64 (PVS-Studio)
show more ...
|
| #
8144690a |
| 16-Feb-2017 |
Eric van Gyzen <[email protected]> |
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
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.
Suggested by: glebius, emaste Reviewed by: gnn MFC after: 2 weeks Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D9625
show more ...
|
|
Revision tags: release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0 |
|
| #
98373126 |
| 17-Oct-2012 |
Ed Maste <[email protected]> |
Avoid potential bad pointer dereference.
Previously RuleAdd would leave entry->la unset for the first entry in the proxyList.
Sponsored by: ADARA Networks MFC After: 1 week
|
|
Revision tags: release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0 |
|
| #
a5e831de |
| 22-Nov-2009 |
Attilio Rao <[email protected]> |
MFC r199208, r199223: Move inet_aton() (specular to inet_ntoa(), already present in libkern) into libkern in order to made it usable by other modules than alias_proxy.
Sponsored by: Sandvine Incorpo
MFC r199208, r199223: Move inet_aton() (specular to inet_ntoa(), already present in libkern) into libkern in order to made it usable by other modules than alias_proxy.
Sponsored by: Sandvine Incorporated
show more ...
|
|
Revision tags: release/8.0.0_cvs, release/8.0.0 |
|
| #
75880123 |
| 12-Nov-2009 |
Attilio Rao <[email protected]> |
Move inet_aton() (specular to inet_ntoa(), already present in libkern) into libkern in order to made it usable by other modules than alias_proxy.
Obtained from: Sandvine Incorporated Sponsored by: S
Move inet_aton() (specular to inet_ntoa(), already present in libkern) 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
show more ...
|
|
Revision tags: release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
| #
4741f3a1 |
| 06-Mar-2008 |
Paolo Pisati <[email protected]> |
MFP4: restrict the utilization of direct pointers to the content of ip packet. These modifications are functionally nop()s thus can be merged with no side effects.
|
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0 |
|
| #
1e2f5705 |
| 30-Apr-2007 |
Maxim Konovalov <[email protected]> |
o Kill EOLWS while I'm here.
|
| #
38ec733c |
| 30-Apr-2007 |
Maxim Konovalov <[email protected]> |
o Fix strtoul() error conditions check.
PR: kern/108211 Submitted by: Yong Tang MFC after: 2 weeks
|
| #
9160afee |
| 04-Apr-2007 |
Alexander Kabaev <[email protected]> |
Do not assign result of (char *) cast to u_char * variable.
|
|
Revision tags: release/6.2.0_cvs, release/6.2.0 |
|
| #
ccd57eea |
| 15-Dec-2006 |
Paolo Pisati <[email protected]> |
o made in kernel libalias mpsafe o fixed a comment o made in kernel libalias a bit less verbose (disabled automatic logging everytime a new link is added or deleted)
Approved by: glebius (mentor)
|
| #
be4f3cd0 |
| 26-Sep-2006 |
Paolo Pisati <[email protected]> |
Summer of Code 2005: improve libalias - part 1 of 2
With the first part of my previous Summer of Code work, we get:
-made libalias modular:
-support for 'particular' protocols (like ftp/irc/etcet
Summer of Code 2005: improve libalias - part 1 of 2
With the first part of my previous Summer of Code work, we get:
-made libalias modular:
-support for 'particular' protocols (like ftp/irc/etcetc) is no more hardcoded inside libalias, but it's available through external modules loadable at runtime
-modules are available both in kernel (/boot/kernel/alias_*.ko) and user land (/lib/libalias_*)
-protocols/applications modularized are: cuseeme, ftp, irc, nbt, pptp, skinny and smedia
-added logging support for kernel side
-cleanup
After a buildworld, do a 'mergemaster -i' to install the file libalias.conf in /etc or manually copy it.
During startup (and after every HUP signal) user land applications running the new libalias will try to read a file in /etc called libalias.conf: that file contains the list of modules to load.
User land applications affected by this commit are ppp and natd: if libalias.conf is present in /etc you won't notice any difference.
The only kernel land bit affected by this commit is ng_nat: if you are using ng_nat, and it doesn't correctly handle ftp/irc/etcetc sessions anymore, remember to kldload the correspondent module (i.e. kldload alias_ftp).
General information and details about the inner working are available in the libalias man page under the section 'MODULAR ARCHITECTURE (AND ipfw(4) SUPPORT)'.
NOTA BENE: this commit affects _ONLY_ libalias, ipfw in-kernel nat support will be part of the next libalias-related commit.
Approved by: glebius Reviewed by: glebius, ru
show more ...
|
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0 |
|
| #
59dde15e |
| 27-Jun-2005 |
Gleb Smirnoff <[email protected]> |
Disable checksum processing in LibAlias, when it works as a kernel module. LibAlias is not aware about checksum offloading, so the caller should provide checksum calculation. (The only current consum
Disable checksum processing in LibAlias, when it works as a kernel module. LibAlias is not aware about checksum offloading, so the caller should provide checksum calculation. (The only current consumer is ng_nat(4)). When TCP packet internals has been changed and it requires checksum recalculation, a cookie is set in th_x2 field of TCP packet, to inform caller that it needs to recalculate checksum. This ugly hack would be removed when LibAlias is made more kernel friendly.
Incremental checksum updates are left as is, since they don't conflict with offloading.
Approved by: re (scottl)
show more ...
|
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
| #
cbfbc555 |
| 06-May-2005 |
Gleb Smirnoff <[email protected]> |
Add a workaround for 64-bit archs: store unsigned long return value in temporary variable, check it and then cast to in_addr_t.
|
| #
6293e003 |
| 06-May-2005 |
Gleb Smirnoff <[email protected]> |
s/DEBUG/LIBALIAS_DEBUG/, since DEBUG is defined in LINT and not supported for kernel build.
|
| #
e9d5db28 |
| 05-May-2005 |
Gleb Smirnoff <[email protected]> |
More bits for kernel version: - copy inet_aton() from libc - disable getservbyname() lookup and accept only numeric port
|
| #
75bc2620 |
| 05-May-2005 |
Gleb Smirnoff <[email protected]> |
Always include alias.h before alias_local.h
|
| #
c8d3ca72 |
| 05-May-2005 |
Gleb Smirnoff <[email protected]> |
Fix argument order for bcopy() in last commit.
Noticed by: njl Pointy hat to: glebius
|
| #
efdc8fbf |
| 05-May-2005 |
Gleb Smirnoff <[email protected]> |
Use bcopy() instead of memmove().
|
| #
c649a2e0 |
| 05-May-2005 |
Gleb Smirnoff <[email protected]> |
Play with includes so that libalias can be compiled both as userland library and kernel module.
|
|
Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
| #
9fa0fd26 |
| 06-Jul-2004 |
Dag-Erling Smørgrav <[email protected]> |
Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an {ip,udp,tcp} header and return a void * pointing to the payload (i.e. the first byte past the end of the header and any requi
Introduce inline {ip,udp,tcp}_next() functions which take a pointer to an {ip,udp,tcp} header and return a void * pointing to the payload (i.e. the first byte past the end of the header and any required padding). Use them consistently throughout libalias to a) reduce code duplication, b) improve code legibility, c) get rid of a bunch of alignment warnings.
show more ...
|
| #
ed01a582 |
| 05-Jul-2004 |
Dag-Erling Smørgrav <[email protected]> |
Make libalias WARNS?=6-clean. This mostly involves renaming variables named link, foo_link or link_foo to lnk, foo_lnk or lnk_foo, fixing signed / unsigned comparisons, and shoving unused function a
Make libalias WARNS?=6-clean. This mostly involves renaming variables named link, foo_link or link_foo to lnk, foo_lnk or lnk_foo, fixing signed / unsigned comparisons, and shoving unused function arguments under the carpet.
I was hoping WARNS?=6 might reveal more serious problems, and perhaps the source of the -O2 breakage, but found no smoking gun.
show more ...
|