From: Dmitry V. Levin Date: Wed, 21 Mar 2007 13:57:50 +0000 (+0000) Subject: 2007-01-12 Dmitry V. Levin X-Git-Tag: v4.5.18~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecdd0bbb5276b5b5ec3d1daf87be0b23082e17a6;p=strace 2007-01-12 Dmitry V. Levin * sock.c (sock_ioctl) [LINUX]: Handle SIOCGIFMAP. --- diff --git a/ChangeLog b/ChangeLog index 855f2964..ce767b3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2007-01-12 Dmitry V. Levin - * sock.c (sock_ioctl) [LINUX]: Handle SIOCGIFTXQLEN. + * sock.c (sock_ioctl) [LINUX]: Handle SIOCGIFTXQLEN and + SIOCGIFMAP. 2007-03-16 Roland McGrath diff --git a/sock.c b/sock.c index 5b3cc3bb..afcb7d82 100644 --- a/sock.c +++ b/sock.c @@ -145,6 +145,7 @@ sock_ioctl(struct tcb *tcp, long code, long arg) case SIOCGIFSLAVE: case SIOCGIFHWADDR: case SIOCGIFTXQLEN: + case SIOCGIFMAP: umove(tcp, tcp->u_arg[2], &ifr); if (syserror(tcp)) { if (code == SIOCGIFNAME) @@ -206,6 +207,17 @@ sock_ioctl(struct tcb *tcp, long code, long arg) case SIOCGIFTXQLEN: tprintf("ifr_qlen=%d", ifr.ifr_qlen); break; + case SIOCGIFMAP: + tprintf("ifr_map={mem_start=%#lx, " + "mem_end=%#lx, base_addr=%#x, " + "irq=%u, dma=%u, port=%u}", + ifr.ifr_map.mem_start, + ifr.ifr_map.mem_end, + (unsigned) ifr.ifr_map.base_addr, + (unsigned) ifr.ifr_map.irq, + (unsigned) ifr.ifr_map.dma, + (unsigned) ifr.ifr_map.port); + break; } tprintf("}"); }