[PATCH 1/2] sock.c (sock_ioctl): Handle SIOCGIFMAP

Dmitry V. Levin ldv at altlinux.org
Sun Mar 18 14:21:20 UTC 2007


2007-01-12  Dmitry V. Levin <ldv at altlinux.org>

	* sock.c (sock_ioctl) [LINUX]: Handle SIOCGIFMAP.

--- sock.c
+++ 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("}");
 		}
-- 
ldv

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20070318/c860981a/attachment.bin>


More information about the Strace-devel mailing list