mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 23:42:05 +08:00
loggerd: remove obsolete ethernetsniffer.py (#22139)
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
# pylint: skip-file
|
||||
|
||||
import cereal.messaging as messaging
|
||||
import pcap
|
||||
|
||||
def main():
|
||||
ethernetData = messaging.pub_sock('ethernetData')
|
||||
|
||||
for ts, pkt in pcap.pcap('eth0'):
|
||||
dat = messaging.new_message('ethernetData', 1)
|
||||
dat.ethernetData[0].ts = ts
|
||||
dat.ethernetData[0].pkt = str(pkt)
|
||||
ethernetData.send(dat.to_bytes())
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user