Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2010 14:13:44 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/netinet ip.h tcp.h
Message-ID:  <201002011413.o11EDr2J064852@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

luigi       2010-02-01 14:13:44 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          ip.h tcp.h 
  Log:
  SVN rev 203343 on 2010-02-01 14:13:44Z by luigi
  
  use u_char instead of u_int for short bitfields.
  
  For our compiler the two constructs are completely equivalent, but
  some compilers (including MSC and tcc) use the base type for alignment,
  which in the cases touched here result in aligning the bitfields
  to 32 bit instead of the 8 bit that is meant here.
  
  Note that almost all other headers where small bitfields
  are used have u_int8_t instead of u_int.
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.35      +4 -4      src/sys/netinet/ip.h
  1.45      +2 -2      src/sys/netinet/tcp.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002011413.o11EDr2J064852>