diff options
author | fche <fche> | 2007-10-05 02:19:35 +0000 |
---|---|---|
committer | fche <fche> | 2007-10-05 02:19:35 +0000 |
commit | bfb724429e55072f53e82f3d4037f2b7e80f1203 (patch) | |
tree | b6e0cc03a0483c1ed4de4957dfb998eeb1de8a85 /stapfuncs.5.in | |
parent | 0986ac384c966a2c789d7a0fd63fa190029143be (diff) | |
download | systemtap-steved-bfb724429e55072f53e82f3d4037f2b7e80f1203.tar.gz systemtap-steved-bfb724429e55072f53e82f3d4037f2b7e80f1203.tar.xz systemtap-steved-bfb724429e55072f53e82f3d4037f2b7e80f1203.zip |
rhbz 319611: htonl and friends in tapset
2007-10-04 Frank Ch. Eigler <fche@elastic.org>
* stapfuncs.5.in: Document inet.stp tapset functions.
* buildok/inet-embedded.stp: Test inet.stp functions.
* inet.stp: New tapset for htonl and friends.
Diffstat (limited to 'stapfuncs.5.in')
-rw-r--r-- | stapfuncs.5.in | 23 |
1 files changed, 23 insertions, 0 deletions
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 |