next up previous contents index
Next: Checksum Up: Utility Routines Previous: Panic Conditions

Byte Order: ntohs, ntohl, htons, and htonl

 

The byte order functions are the same as the Unix functions.

 
		u_short 		ntohs(u_short n)

u_long ntohl(u_long n)

u_short htons(u_short n)

u_long htonl(u_long n)



Larry Peterson
Tue Jul 1 14:50:34 MST 1997