From bfb724429e55072f53e82f3d4037f2b7e80f1203 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 5 Oct 2007 02:19:35 +0000 Subject: rhbz 319611: htonl and friends in tapset 2007-10-04 Frank Ch. Eigler * stapfuncs.5.in: Document inet.stp tapset functions. * buildok/inet-embedded.stp: Test inet.stp functions. * inet.stp: New tapset for htonl and friends. --- stapfuncs.5.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'stapfuncs.5.in') diff --git a/stapfuncs.5.in b/stapfuncs.5.in index 71af8c9b..fe8c45b8 100644 --- a/stapfuncs.5.in +++ b/stapfuncs.5.in @@ -352,6 +352,29 @@ Returns the string representation of the given socket flags value. msg_flags_num2str:string (flags:long) Returns the string representation of the given message flags bit map. +.SS INET +These functions convert between network (big-endian) and host byte order, like their +namesake C functions. +.TP +ntohll:long (x:long) +Convert from network to host byte order, 64-bit. +.TP +ntohl:long (x:long) +Convert from network to host byte order, 32-bit. +.TP +ntohs:long (x:long) +Convert from network to host byte order, 16-bit. +.TP +htonll:long (x:long) +Convert from host to network byte order, 64-bit. +.TP +htonl:long (x:long) +Convert from host to network byte order, 32-bit. +.TP +htons:long (x:long) +Convert from host to network byte order, 16-bit. + + .SH FILES .nh .IR @prefix@/share/systemtap/tapset -- cgit