blob: c9cc94866fecefa406883a2f73e14af6c8bb001b [file] [log] [blame]
Harald Welteddeecbb2017-08-18 22:53:30 +02001module Native_Functions {
2
Pau Espin Pedrolaea381f2018-01-29 15:18:17 +01003 /* direct import of inet_pton(AF_INET6) C function, returns net byte order */
4 external function f_inet6_addr(in charstring ch) return octetstring;
Harald Welte303c19a2017-08-19 13:06:14 +02005 /* direct import of inet_addr() C function, returns net byte order */
Harald Welteddeecbb2017-08-18 22:53:30 +02006 external function f_inet_addr(in charstring ch) return octetstring;
Harald Welte303c19a2017-08-19 13:06:14 +02007 /* like inet_addr() but return is host byte order */
8 external function f_inet_haddr(in charstring ch) return octetstring;
9
10 /* direct import of inet_ntoa() C function, input net byte order */
11 external function f_inet_ntoa(in octetstring oct) return charstring;
12 /* like inet_ntoa() but input is host byte order */
13 external function f_inet_hntoa(in octetstring oct) return charstring;
Vadim Yanitskiy04ef7d82022-02-11 19:11:46 +060014 /* direct import of inet_ntop(AF_INET6) C function, input net byte order */
15 external function f_inet6_ntoa(in octetstring oct) return charstring;
Harald Welte625faad2020-02-19 19:48:10 +010016
17 /* convert content of charstring to lower-case using tolower(3) */
18 external function f_str_tolower(in charstring input) return charstring;
19
20 /* convert content of charstring to upper-case using toupper(3) */
21 external function f_str_toupper(in charstring input) return charstring;
Harald Welteddeecbb2017-08-18 22:53:30 +020022}