mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
6lowpan: remove unused LOWPAN_FRAG_SIZE define
This define is unused since commit96cb3eb7a1
("6lowpan: fix fragmentation on sending side"). It is a worst case scenario for payload calculation. Since commit96cb3eb7a1
we calculation the payload to use the optimal size. This define is also necessary for ieee802154 6lowpan only and the file include/net/6lowpan.h should contain generic 6lowpan things only. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
b2e3a479a6
commit
004942445d
1 changed files with 0 additions and 11 deletions
|
@ -154,17 +154,6 @@
|
|||
#define LOWPAN_FRAG1_HEAD_SIZE 0x4
|
||||
#define LOWPAN_FRAGN_HEAD_SIZE 0x5
|
||||
|
||||
/*
|
||||
* According IEEE802.15.4 standard:
|
||||
* - MTU is 127 octets
|
||||
* - maximum MHR size is 37 octets
|
||||
* - MFR size is 2 octets
|
||||
*
|
||||
* so minimal payload size that we may guarantee is:
|
||||
* MTU - MHR - MFR = 88 octets
|
||||
*/
|
||||
#define LOWPAN_FRAG_SIZE 88
|
||||
|
||||
/*
|
||||
* Values of fields within the IPHC encoding first byte
|
||||
* (C stands for compressed and I for inline)
|
||||
|
|
Loading…
Reference in a new issue