Skip to Content
The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition
book

The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition

by W. Richard Stevens, Bill Fenner, Andrew M. Rudoff
November 2003
Intermediate to advanced
1024 pages
25h 50m
English
Addison-Wesley Professional
Content preview from The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition

Chapter 27. IP Options

Introduction

IPv4 allows up to 40 bytes of options to follow the fixed 20-byte header. Although 10 different options are defined, the most commonly used is the source route option. Access to these options is through the IP_OPTIONS socket option and we will demonstrate this with an example that uses source routing.

IPv6 allows extension headers to occur between the fixed 40-byte IPv6 header and the transport-layer header (e.g., ICMPv6, TCP, or UDP). Six different extension headers are currently defined. Unlike the IPv4 approach, access to the IPv6 extension headers is through a functional interface instead of forcing the user to understand the actual details of how the headers appear in the IPv6 packet.

IPv4 Options

In Figure ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Network Programming with Go

Network Programming with Go

Adam Woodbeck

Publisher Resources

ISBN: 0131411551Purchase book