The answer in the general case is, "stuff that looks substantially like libpcap". It's all written in C, surprise!
On the very high end, or in very specialized cases, you'll find:
* FPGA regexers, OEM'd from a couple common vendors, that compile DFAs into gates.
* Multicore "network processors" with MIPS cores and fast custom memory busses.
* Blades that connect into the backplanes of (ubiquitous) Cat6k switches to intercept traffic.
By and large, this is a systems design problem, not an algorithms challenge. To appreciate that, you have to get the context for this WaPo story, which includes the fact that the story is totally overblown and ISPs are not reading your email or web traffic, but rather trying to figure out how to commercialize a "fast-path" network product for bulk P2P/streaming media customers.