[Midnightbsd-cvs] [MidnightBSD/src] 7605d2: ip6_output: improve extension header handling

Lucas Holt noreply at github.com
Sun Nov 15 01:59:31 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: 7605d21314edac5a2f3d260d8c0d6bc259dbf782
      https://github.com/MidnightBSD/src/commit/7605d21314edac5a2f3d260d8c0d6bc259dbf782
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2020-11-15 (Sun, 15 Nov 2020)

  Changed paths:
    M sys/netinet6/ip6_output.c

  Log Message:
  -----------
   ip6_output: improve extension header handling

  Move IPv6 source address checks from after extension header heandling
  to the top of the function. If we do not pass these checks there is
  no reason to do a lot of work upfront.

  Fold extension header preparations and length calculations together into
  a single branch and macro rather than doing them sequentially.
  Likewise move extension header concatination into a single branch block
  only doing it if we recorded any extension header length length.




More information about the Midnightbsd-cvs mailing list