[Re: ntohs madness??]
11 Jul 2001 00:31:13 EDT
> > Could someone tell me what is happening or what am i doing wrong?
> I guess you didn't include byteorder/generic.h
> > I followed ntohs and it seems to be merely a #define and I am sure I
> > all the relelvant ones.
I did make sure that the byteorder/generic.h where there and yet it still=
did not work. The trick was to set the -O2 flag for gcc. Once that is don=
one does not need to worry about including that file.
Surely, this is how most of the kernel is compiled, but unfortunately the=
module programming guides dont mention it.
Thanks for the help though.