summaryrefslogtreecommitdiff
path: root/mac/sar/inc/sar_mf.h
diff options
context:
space:
mode:
authorsave2008-04-07 14:17:42 +0000
committersave2008-04-07 14:17:42 +0000
commit3d58a62727346b7ac1a6cb36fed1a06ed72228dd (patch)
treed7788c3cf9f76426aef0286d0202e2097f0fa0eb /mac/sar/inc/sar_mf.h
parent095dca4b0a8d4924093bab424f71f588fdd84613 (diff)
Moved the complete svn base into the cesar directory.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1769 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'mac/sar/inc/sar_mf.h')
-rw-r--r--mac/sar/inc/sar_mf.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/mac/sar/inc/sar_mf.h b/mac/sar/inc/sar_mf.h
deleted file mode 100644
index 4101f15150..0000000000
--- a/mac/sar/inc/sar_mf.h
+++ /dev/null
@@ -1,75 +0,0 @@
-#ifndef SAR_MF_H_
-#define SAR_MF_H_
-
-/* Cesar project {{{
- *
- * Copyright (C) 2007 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file sar_mf.h
- * \brief header for the Mac Frame use.
- * \ingroup mac/sar/inc
- */
-
-#include "mac/pbproc/pbproc.h"
-#include "common/defs/ethernet.h"
-
-#define SAR_MF_MFH_SIZE 2
-#define SAR_MF_ATS_SIZE 4
-#define SAR_MF_ICV_SIZE 4
-
-
-#define SAR_MF_MAX_SIZE (SAR_MF_MFH_SIZE + SAR_MF_ATS_SIZE + ETH_PACKET_MAX_SIZE + SAR_MF_ICV_SIZE)
-#define SAR_MF_MIN_SIZE (SAR_MF_MFH_SIZE + SAR_MF_ATS_SIZE + ETH_PACKET_MIN_SIZE + SAR_MF_ICV_SIZE)
-
-#define SAR_DIV_BY_BLK_SIZE 9
-
-/**
- * Get the type of the MF from the PB at the data adress plus the offset
- *
- * \param pb The first pb containing the MF.
- * \param offset the offset to start reading
- * \return MF type.
- */
-uint mf_get_type (pb_t * pb, uint offset);
-
-/**
- * Test the existance of a MF at the address given by mf and return its length.
- * Will be used to determine if a complete MF is avaliable in the MFS.
- * Test if the MF start in the end of the PB by verifying the offset, if the MFH
- * is in two PBs.
- *
- * \param pb The first pb containing the MF.
- * \param offset the offset to start reading
- * \param payload_only request to return only the payload length if true.
- *
- * \return length of the paylod with the header and icv
- */
-uint mf_get_length (pb_t *pb, uint offset, bool payload_length_only);
-
-/**
- * Calculate the number of PB used for the MF
- *
- * Depends of the mf_get_length function
- *
- * \param pb the first PB where the MF starts
- * \param offset the offset of the PB where the MF starts
- * \return the quantity of PBs
- */
-uint mf_get_quantity_of_pb (pb_t *pb, uint offset);
-
-/**
- * gets the ATS of a MF in the address pointed by the PB plus the offset
- *
- * Depends of mf_get_type
- *
- * \param pb the first PB where the MF starts
- * \param offset the offset of the PB where the MF starts
- * \return the ATS of the MF.
- */
-u32 mf_get_ats (pb_t *, uint offset);
-
-#endif /*SAR_MF_H_*/