Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright (C)2003-2006 Helsinki University of Technology
0004  * Copyright (C)2003-2006 USAGI/WIDE Project
0005  */
0006 /*
0007  * Authors:
0008  *  Noriaki TAKAMIYA @USAGI
0009  *  Masahide NAKAMURA @USAGI
0010  *  YOSHIFUJI Hideaki @USAGI
0011  */
0012 #ifndef _NET_MIP6_H
0013 #define _NET_MIP6_H
0014 
0015 #include <linux/skbuff.h>
0016 #include <net/sock.h>
0017 
0018 /*
0019  * Mobility Header
0020  */
0021 struct ip6_mh {
0022     __u8    ip6mh_proto;
0023     __u8    ip6mh_hdrlen;
0024     __u8    ip6mh_type;
0025     __u8    ip6mh_reserved;
0026     __u16   ip6mh_cksum;
0027     /* Followed by type specific messages */
0028     __u8    data[];
0029 } __packed;
0030 
0031 #define IP6_MH_TYPE_BRR     0   /* Binding Refresh Request */
0032 #define IP6_MH_TYPE_HOTI    1   /* HOTI Message   */
0033 #define IP6_MH_TYPE_COTI    2   /* COTI Message  */
0034 #define IP6_MH_TYPE_HOT     3   /* HOT Message   */
0035 #define IP6_MH_TYPE_COT     4   /* COT Message  */
0036 #define IP6_MH_TYPE_BU      5   /* Binding Update */
0037 #define IP6_MH_TYPE_BACK    6   /* Binding ACK */
0038 #define IP6_MH_TYPE_BERROR  7   /* Binding Error */
0039 #define IP6_MH_TYPE_MAX     IP6_MH_TYPE_BERROR
0040 
0041 #endif