cvs commit: src/sys/netinet ip_output.c

Robert Watson rwatson at FreeBSD.org
Sun Dec 5 14:08:38 PST 2004


rwatson     2004-12-05 22:08:37 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          ip_output.c 
  Log:
  Pass the inpcb reference into ip_getmoptions() rather than just the
  inp->inp_moptions pointer, so that ip_getmoptions() can perform
  necessary locking when doing non-atomic reads.
  
  Lock the inpcb by default to copy any data to local variables, then
  unlock before performing sooptcopyout().
  
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.236     +14 -6     src/sys/netinet/ip_output.c


More information about the cvs-all mailing list