Date: Thu, 30 May 2013 11:08:16 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251130 - head/tools/tools/netmap Message-ID: <201305301108.r4UB8GqU044899@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: luigi Date: Thu May 30 11:08:16 2013 New Revision: 251130 URL: http://svnweb.freebsd.org/changeset/base/251130 Log: remove use of deprecated ioctl() Modified: head/tools/tools/netmap/nm_util.c head/tools/tools/netmap/pcap.c Modified: head/tools/tools/netmap/nm_util.c ============================================================================== --- head/tools/tools/netmap/nm_util.c Thu May 30 08:02:00 2013 (r251129) +++ head/tools/tools/netmap/nm_util.c Thu May 30 11:08:16 2013 (r251130) @@ -221,7 +221,6 @@ netmap_close(struct my_ring *me) D(""); if (me->mem) munmap(me->mem, me->memsize); - ioctl(me->fd, NIOCUNREGIF, NULL); close(me->fd); return (0); } Modified: head/tools/tools/netmap/pcap.c ============================================================================== --- head/tools/tools/netmap/pcap.c Thu May 30 08:02:00 2013 (r251129) +++ head/tools/tools/netmap/pcap.c Thu May 30 11:08:16 2013 (r251130) @@ -13,7 +13,7 @@ #define MY_PCAP #include "nm_util.h" -char *version = "$Id: pcap.c 11463 2012-07-30 15:26:02Z luigi $"; +char *version = "$Id$"; int verbose = 0; /* @@ -445,7 +445,6 @@ pcap_close(pcap_t *p) if (me->mem) munmap(me->mem, me->memsize); /* restore original flags ? */ - ioctl(me->fd, NIOCUNREGIF, NULL); close(me->fd); bzero(me, sizeof(*me)); free(me);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305301108.r4UB8GqU044899>