]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFp4 bz_ipv6_fast:
authorBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 24 May 2012 22:00:48 +0000 (22:00 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 24 May 2012 22:00:48 +0000 (22:00 +0000)
commit920b965865cd72bbb131f4461feb176074ce164a
treed415a9765cf96fda52f455d1ba966e7d88fb9ccd
parent8bed40c9fe84015ff4e2ddeb54aa3207e7fa5375
MFp4 bz_ipv6_fast:

  in_cksum.h required ip.h to be included for struct ip.  To be
  able to use some general checksum functions like in_addword()
  in a non-IPv4 context, limit the (also exported to user space)
  IPv4 specific functions to the times, when the ip.h header is
  present and IPVERSION is defined (to 4).

  We should consider more general checksum (updating) functions
  to also allow easier incremental checksum updates in the L3/4
  stack and firewalls, as well as ponder further requirements by
  certain NIC drivers needing slightly different pseudo values
  in offloading cases.  Thinking in terms of a better "library".

  Sponsored by: The FreeBSD Foundation
  Sponsored by: iXsystems

Reviewed by: gnn (as part of the whole)
MFC After: 3 days
sys/amd64/include/in_cksum.h
sys/arm/include/in_cksum.h
sys/i386/include/in_cksum.h
sys/ia64/include/in_cksum.h
sys/mips/include/in_cksum.h
sys/powerpc/include/in_cksum.h
sys/sparc64/include/in_cksum.h