diff --git a/src/record_syscall.cc b/src/record_syscall.cc index 9fa47a56126..a0ded2a56b1 100644 --- a/src/record_syscall.cc +++ b/src/record_syscall.cc @@ -1713,6 +1713,7 @@ static Switchable prepare_ioctl(RecordTask* t, case SIOCGIFMETRIC: case SIOCGIFMAP: case SIOCGMIIPHY: + case SIOCGMIIREG: syscall_state.reg_parameter(3); syscall_state.after_syscall_action(record_page_below_stack_ptr); return PREVENT_SWITCH; diff --git a/src/test/sioc.c b/src/test/sioc.c index b2771005f1c..0aba197f699 100644 --- a/src/test/sioc.c +++ b/src/test/sioc.c @@ -533,6 +533,10 @@ int main(void) { atomic_printf("flags is %d\n", req->ifr_ifru.ifru_flags); } + if (GENERIC_REQUEST_BY_NAME(SIOCGMIIREG)) { + atomic_printf("flags is %d\n", req->ifr_ifru.ifru_flags); + } + atomic_puts("EXIT-SUCCESS"); return 0; }