SVNews r329158

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-02-12 13:52:58 - r329158 by ae (Andrey V. Elsukov)

Complete list of files affected by revision r329158:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

   Contents     MODIFY   /stable/10  
  History   Contents   Diff   MODIFY   /stable/10/sys/netinet6/frag6.c  
  History   Contents   Diff   MODIFY   /stable/10/sys/netinet6/ip6_input.c  
  History   Contents   Diff   MODIFY   /stable/10/sys/netinet6/ip6_var.h  
  History   Contents   Diff   MODIFY   /stable/10/sys/netinet6/raw_ip6.c  

Commit message:

MFC r328876:
  Modify ip6_get_prevhdr() to be able use it safely.

  Instead of returning pointer to the previous header, return its offset.
  In frag6_input() use m_copyback() and determined offset to store next
  header instead of accessing to it by pointer and assuming that the memory
  is contiguous.

  In rip6_input() use offset returned by ip6_get_prevhdr() instead of
  calculating it from pointers arithmetic, because IP header can belong
  to another mbuf in the chain.

  Reported by: Maxime Villard <max at m00nbsd dot net>


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 12 ms, 5 files printed. Current time is 2018-05-23 05:01:43. All times are in UTC/GMT.