> > Ah. I just realize that the endianess can be supported as simple as: > > In stead of this: > xsum += (*p & 0xff00); > Use this: > xsum += (*p & ntohs(0xff00)); Did you look at the suggestion I sent you? I know it works because I use in ospf. Jocke