xref: /openbmc/linux/include/net/mip6.h (revision 1ccea77e)
11ccea77eSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
22c8d7ca0SNoriaki TAKAMIYA /*
32c8d7ca0SNoriaki TAKAMIYA  * Copyright (C)2003-2006 Helsinki University of Technology
42c8d7ca0SNoriaki TAKAMIYA  * Copyright (C)2003-2006 USAGI/WIDE Project
52c8d7ca0SNoriaki TAKAMIYA  */
62c8d7ca0SNoriaki TAKAMIYA /*
72c8d7ca0SNoriaki TAKAMIYA  * Authors:
82c8d7ca0SNoriaki TAKAMIYA  *	Noriaki TAKAMIYA @USAGI
92c8d7ca0SNoriaki TAKAMIYA  *	Masahide NAKAMURA @USAGI
102c8d7ca0SNoriaki TAKAMIYA  *	YOSHIFUJI Hideaki @USAGI
112c8d7ca0SNoriaki TAKAMIYA  */
122c8d7ca0SNoriaki TAKAMIYA #ifndef _NET_MIP6_H
132c8d7ca0SNoriaki TAKAMIYA #define _NET_MIP6_H
142c8d7ca0SNoriaki TAKAMIYA 
157be96f76SMasahide NAKAMURA #include <linux/skbuff.h>
167be96f76SMasahide NAKAMURA #include <net/sock.h>
177be96f76SMasahide NAKAMURA 
182b741653SMasahide NAKAMURA /*
192b741653SMasahide NAKAMURA  * Mobility Header
202b741653SMasahide NAKAMURA  */
212b741653SMasahide NAKAMURA struct ip6_mh {
222b741653SMasahide NAKAMURA 	__u8	ip6mh_proto;
232b741653SMasahide NAKAMURA 	__u8	ip6mh_hdrlen;
242b741653SMasahide NAKAMURA 	__u8	ip6mh_type;
252b741653SMasahide NAKAMURA 	__u8	ip6mh_reserved;
262b741653SMasahide NAKAMURA 	__u16	ip6mh_cksum;
272b741653SMasahide NAKAMURA 	/* Followed by type specific messages */
282b741653SMasahide NAKAMURA 	__u8	data[0];
29bc10502dSEric Dumazet } __packed;
302b741653SMasahide NAKAMURA 
312b741653SMasahide NAKAMURA #define IP6_MH_TYPE_BRR		0   /* Binding Refresh Request */
322b741653SMasahide NAKAMURA #define IP6_MH_TYPE_HOTI	1   /* HOTI Message   */
332b741653SMasahide NAKAMURA #define IP6_MH_TYPE_COTI	2   /* COTI Message  */
342b741653SMasahide NAKAMURA #define IP6_MH_TYPE_HOT		3   /* HOT Message   */
352b741653SMasahide NAKAMURA #define IP6_MH_TYPE_COT		4   /* COT Message  */
362b741653SMasahide NAKAMURA #define IP6_MH_TYPE_BU		5   /* Binding Update */
372b741653SMasahide NAKAMURA #define IP6_MH_TYPE_BACK	6   /* Binding ACK */
382b741653SMasahide NAKAMURA #define IP6_MH_TYPE_BERROR	7   /* Binding Error */
392b741653SMasahide NAKAMURA #define IP6_MH_TYPE_MAX		IP6_MH_TYPE_BERROR
402b741653SMasahide NAKAMURA 
412c8d7ca0SNoriaki TAKAMIYA #endif
42