3.8 Processing Hop-by-Hop Options Header: ip6_hopopts_input() Function

The ip6_hopopts_input() function, shown below, is a subroutine of ip6_input() that processes the Hop-by-Hop options header if it is included in the incoming packet. In fact, this function only performs minimal validation and simply calls the ip6_process_hopopts() function described in the succeeding subsection.

Listing 3-35

1367-1371 The first call to the IP6_EXTHDR_CHECK() macro ensures that the first mbuf contains enough data to refer to the length field of the Hop-by-Hop ...

Get IPv6 Core Protocols Implementation 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.