cvs commit: src/sys/netinet/libalias alias_ftp.c alias_irc.c
alias_local.h alias_proxy.c alias_skinny.c alias_smedia.c
alias_util.c
Ruslan Ermilov
ru at FreeBSD.org
Mon Jun 27 15:21:56 GMT 2005
On Mon, Jun 27, 2005 at 07:36:02AM +0000, Gleb Smirnoff wrote:
> glebius 2005-06-27 07:36:02 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/netinet/libalias alias_ftp.c alias_irc.c alias_local.h
> alias_proxy.c alias_skinny.c
> alias_smedia.c alias_util.c
> Log:
> 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)
>
> Revision Changes Path
> 1.27 +4 -0 src/sys/netinet/libalias/alias_ftp.c
> 1.21 +4 -0 src/sys/netinet/libalias/alias_irc.c
> 1.32 +10 -1 src/sys/netinet/libalias/alias_local.h
> 1.26 +4 -0 src/sys/netinet/libalias/alias_proxy.c
> 1.12 +12 -2 src/sys/netinet/libalias/alias_skinny.c
> 1.15 +8 -1 src/sys/netinet/libalias/alias_smedia.c
> 1.18 +8 -8 src/sys/netinet/libalias/alias_util.c
>
Why can't we just say that checksum offloading is incompatible
with NAT (like with many other things), and do the software
checksum calculations in libalias?
Cheers,
--
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050627/9660b1b6/attachment.bin
More information about the cvs-src
mailing list