1 // SPDX-License-Identifier: GPL-2.0-or-later << 2 /* 1 /* 3 * 6LoWPAN IPv6 Routing Header compressio 2 * 6LoWPAN IPv6 Routing Header compression according to RFC6282 >> 3 * >> 4 * This program is free software; you can redistribute it and/or >> 5 * modify it under the terms of the GNU General Public License >> 6 * as published by the Free Software Foundation; either version >> 7 * 2 of the License, or (at your option) any later version. 4 */ 8 */ 5 9 6 #include "nhc.h" 10 #include "nhc.h" 7 11 >> 12 #define LOWPAN_NHC_ROUTING_IDLEN 1 8 #define LOWPAN_NHC_ROUTING_ID_0 0xe2 13 #define LOWPAN_NHC_ROUTING_ID_0 0xe2 9 #define LOWPAN_NHC_ROUTING_MASK_0 0xfe 14 #define LOWPAN_NHC_ROUTING_MASK_0 0xfe 10 15 >> 16 static void routing_nhid_setup(struct lowpan_nhc *nhc) >> 17 { >> 18 nhc->id[0] = LOWPAN_NHC_ROUTING_ID_0; >> 19 nhc->idmask[0] = LOWPAN_NHC_ROUTING_MASK_0; >> 20 } >> 21 11 LOWPAN_NHC(nhc_routing, "RFC6282 Routing", NEX 22 LOWPAN_NHC(nhc_routing, "RFC6282 Routing", NEXTHDR_ROUTING, 0, 12 LOWPAN_NHC_ROUTING_ID_0, LOWPAN_NHC !! 23 routing_nhid_setup, LOWPAN_NHC_ROUTING_IDLEN, NULL, NULL); 13 24 14 module_lowpan_nhc(nhc_routing); 25 module_lowpan_nhc(nhc_routing); 15 MODULE_DESCRIPTION("6LoWPAN next header RFC628 26 MODULE_DESCRIPTION("6LoWPAN next header RFC6282 Routing compression"); 16 MODULE_LICENSE("GPL"); 27 MODULE_LICENSE("GPL"); 17 28
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.