------- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-21 15:23 -------
The code violates C aliasing rules:
struct pseudoheader ph;
csum = my_chksum_tcp((u_int16_t *)&ph, (u_int16_t *)pkt, len);
.....
static unsigned short my_chksum_tcp( unsigned short *h, unsigned short * d, int
dlen )
....
cksum = h[0];
*** This bug has been marked as a duplicate of 21920 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28792