#include <netinet/in.h>])
AC_LITTLE_ENDIAN_LONG_LONG
AC_OFF_T_IS_LONG_LONG
-AC_CHECK_TYPES([struct opthdr],,, [#include <sys/socket.h>])
-AC_CHECK_TYPES([struct t_opthdr],,, [#include <sys/tiuser.h>])
AC_CHECK_FUNCS(m4_normalize([
fork
return 0;
}
-#ifdef HAVE_STRUCT_OPTHDR
-
-void
-print_sock_optmgmt(struct tcb *tcp, long addr, int len)
-{
- int c = 0;
- struct opthdr hdr;
-
- while (len >= (int) sizeof hdr) {
- if (umove(tcp, addr, &hdr) < 0) break;
- if (c++) {
- tprints(", ");
- }
- else if (len > hdr.len + sizeof hdr) {
- tprints("[");
- }
- tprints("{");
- addr += sizeof hdr;
- len -= sizeof hdr;
- printsockopt(tcp, hdr.level, hdr.name, addr, hdr.len);
- if (hdr.len > 0) {
- addr += hdr.len;
- len -= hdr.len;
- }
- tprints("}");
- }
- if (len > 0) {
- if (c++) tprints(", ");
- printstr(tcp, addr, len);
- }
- if (c > 1) tprints("]");
-}
-
-#endif
-
int
sys_setsockopt(struct tcb *tcp)
{