![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /opt/rh/gcc-toolset-11/root/usr/share/systemtap/tapset/dyninst/ |
/* Some functions from libc <arpa/inet.h> */ /* NB: functionally equivalent to linux/inet.stp * ... but we have the advantage of using (mostly) direct equivalents! */ %{ #include <arpa/inet.h> #include <endian.h> %} function htonll:long (x:long) %{ /* pure */ STAP_RETVALUE = htobe64 ((uint64_t) STAP_ARG_x); %} function htonl:long (x:long) %{ /* pure */ STAP_RETVALUE = htonl ((uint32_t) STAP_ARG_x); %} function htons:long (x:long) %{ /* pure */ STAP_RETVALUE = htons ((uint16_t) STAP_ARG_x); %} function ntohll:long (x:long) %{ /* pure */ STAP_RETVALUE = be64toh ((uint64_t) STAP_ARG_x); %} function ntohl:long (x:long) %{ /* pure */ STAP_RETVALUE = ntohl ((uint32_t) STAP_ARG_x); %} function ntohs:long (x:long) %{ /* pure */ STAP_RETVALUE = ntohs ((uint16_t) STAP_ARG_x); %}