Chapter 18. The Power of Raw Sockets

IN THIS CHAPTER

Sometimes the materials available do not fit the intent and needs of your project. When this happens, you have to start with very raw materials. TCP and UDP do not give you access to the raw guts of the IP packets. You have to delve deeper and do more foundational work.

The raw socket offers you a lot of flexibility. Also, the programs that use raw sockets tend to be very simple and fast. This chapter details the use and intent of raw sockets and gives you tips on how to construct the packets.

When Would You Use Raw Sockets?

The raw material ...

Get Linux® Socket Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.