remove use of deprecated ioctl()

This commit is contained in:
Luigi Rizzo 2013-05-30 11:08:16 +00:00
parent edc89b24f3
commit 00c2805055
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251130
2 changed files with 1 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);