Lines Matching defs:tap
77 EtherTapBase *tap;
81 : PollEvent(fd, e), tap(_tap) {}
88 EventQueue::ScopedMigration migrate(tap->eventQueue());
90 tap->recvReal(revent);
165 if (if_name == "tap")
248 EtherTapStub *tap;
252 TapListener(EtherTapStub *t, int p) : event(NULL), tap(t), port(p) {}
266 ccprintf(cerr, "Listening for tap connection on port %d\n", port);
277 EventQueue::ScopedMigration migrate(tap->eventQueue());
284 tap->attach(sfd);
416 panic("Failed to access tap device %s.\n", ifr.ifr_name);
417 // fd now refers to the tap device.
418 tap = fd;
419 pollFd(tap);
425 close(tap);
426 tap = -1;
433 panic("Error polling for tap data.\n");
439 while ((ret = read(tap, buffer, buflen))) {
443 panic("Failed to read from tap device.\n");
455 pfd->fd = tap;
458 // `tap` is a nonblock fd. Here we try to write until success, and use
460 while ((n = write(tap, data, len)) != len) {
462 panic("Failed to write data to tap device.\n");
468 panic("Failed when polling to write data to tap device.\n");