Lines Matching refs:nioc
219 struct nit_ioc nioc; in nit_setflags() local
221 memset(&nioc, 0, sizeof(nioc)); in nit_setflags()
222 nioc.nioc_typetomatch = NT_ALLTYPES; in nit_setflags()
223 nioc.nioc_snaplen = p->snapshot; in nit_setflags()
224 nioc.nioc_bufalign = sizeof(int); in nit_setflags()
225 nioc.nioc_bufoffset = 0; in nit_setflags()
228 nioc.nioc_bufspace = p->opt.buffer_size; in nit_setflags()
231 nioc.nioc_bufspace = BUFSPACE; in nit_setflags()
240 nioc.nioc_chunksize = 0; in nit_setflags()
242 nioc.nioc_chunksize = CHUNKSIZE; in nit_setflags()
244 nioc.nioc_flags |= NF_TIMEOUT; in nit_setflags()
245 nioc.nioc_timeout.tv_sec = p->opt.timeout / 1000; in nit_setflags()
246 nioc.nioc_timeout.tv_usec = (p->opt.timeout * 1000) % 1000000; in nit_setflags()
249 nioc.nioc_flags |= NF_PROMISC; in nit_setflags()
251 if (ioctl(p->fd, SIOCSNIT, &nioc) < 0) { in nit_setflags()