Let me define the problem first.
> Chandani, You are using a system which has unsigned short set to 16 > bits.
Possibly true, but that is not the problem.
The problem is, someone was using the IETF main discussion list as a "help me with my very basic programming problem" resource. IMHO, Valdis may have worded it a bit roughly, but he had the right ideas, mainly:
1) Ask on an intro-to-C mailing list.
Another suggestion would be to read Eric S. Raymond's essay, "How To Ask Questions The Smart Way" (which Chanandi definitely did not do), at:
http://www.catb.org/~esr/faqs/smart-questions.html
Now, I suggest we let this thread die a timely death.
Thanks, Dave
-- David J. Aronson, Software Engineer for hire in Washington DC area. See http://destined.to/program/ for online resume, references, etc.