Home | History | Annotate | Download | only in cros

Lines Matching refs:tap

52     """Manage a p2p-server instance running over a TAP interface.
54 This class manages a p2p-server instance configured to run over a TAP
61 @param tap_ip: IPv4 address for the TAP interface on the DUT's end.
63 @param tap_name: The name prefix for the TAP interface.
71 self.tap = None
76 """Initializes avahi daemon on a new tap interface.
78 @param dumpdir: Directory where the traffic on the new tap interface
95 # Initialize the TAP interface.
96 self.tap = tuntap.TunTap(tuntap.IFF_TAP, name=self._tap_name)
97 self.tap.set_addr(self._tap_ip, self._tap_mask)
98 self.tap.up()
102 dumpfile = os.path.join(dumpdir, 'dump-%s.pcap' % self.tap.name)
103 self._tcpdump = tcpdump.Tcpdump(self.tap.name, dumpfile)
105 # Re-launch avahi-daemon on the TAP interface only.
106 avahi_utils.avahi_start_on_iface(self.tap.name)
125 if self.tap:
126 self.tap.down()