(self, x)
| 620 | self.pcap_fd.setfilter(filter) |
| 621 | |
| 622 | def send(self, x): |
| 623 | # type: (Packet) -> int |
| 624 | sx = raw(x) |
| 625 | try: |
| 626 | x.sent_time = time.time() |
| 627 | except AttributeError: |
| 628 | pass |
| 629 | return self.pcap_fd.send(sx) |
| 630 | |
| 631 | class L3pcapSocket(L2pcapSocket): |
| 632 | desc = "read/write packets at layer 3 using only libpcap" |