Hacker Newsnew | past | comments | ask | show | jobs | submit | kmdent's commentslogin

Everyone is pretending like the word mandatory isn't in the article. You don't HAVE to work from home. If you don't want to be around your kids, go into the office. Making people go into the office and risk long term damage or death from covid is absolutely insane.


They should call it AirBnE.


This is something that I never knew I needed.


I recently used this to create a tethering program. It works well, but there is a large bug. In particular, in the sniff function. When you sniff UDP packets, Scapy miscalculates the length of the IP and UDP packets. What is happening is that Scapy uses the UDP length as the IP length, and then subtracts the size of the UDP header for the UDP header. If you then try and send it to another computer, the packet is "malformed" because the length is incorrect. To prove this, when you sniff a udp packet and then do packet.show(), the packet looks totally correct. If you use packet.show2(), the packet cuts off the end. This is because the show2 function uses the length and recalculates the checksum. To solve this, delete the packet[IP].len and the packet[UDP].len and then show2(). This correctly recalculates the length and shows the full packet.


I tried to use node.js instead of scapy, dropping down to a C++ addon that we wrote in order to do ioctl calls and send raw packets.

We ended up keeping the addon for the ioctl calls, but the addon for sending raw packets didn't make it: we didn't want to reconstruct the javascript object versions of packets sniffed by node_pcap in order to send them on the raw socket (didn't want to make a small mistake and break the whole project for ourselves).

So we used scapy that part of the tethering project; worked well for us though it could have used more docs.


Did you submit a bug report or a patch? You seem to have diagnosed it quite sufficiently.


I did.


Zoom would be helpful.


That piece of paper makes all the difference. Hang in there for the last year and you will be happy you did. It is tough to land a good job without a degree.

Good luck with whatever you choose.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: