Improve Laggy SSH with Mosh

Mosh is a shell for mobile users. It carries a handful of features that make it great for users on the move:

  • auto reconnect after suspend/resume, network reconnect, etc
  • responsiveness on high delay networks
  • secure authentication
  • simple usage

Since I often travel by train when commuting to work, I ...

more ...

Receiving UDP Packets in Promiscuous Mode

One of my colleagues needed to sniff UDP packets from two other nodes in the wireless ad-hoc network, so I cooked a header file for him, along with a small usage example.

My first attempt used the obsolete AF_INET and SOCK_RAW protocol arguments to the socket call, but this didn ...

more ...

Getting the Gateway Link Layer Address Using RTNetlink

In my networking application I need to get the MAC address of the default gateway. One way to do this is parsing the relevant files in /proc/net, but this is not an elegant solution.

Instead, I use the network configuration interface to the linux kernel: rtnetlink. To get familiar ...

more ...