summaryrefslogtreecommitdiff
path: root/cesar/lib
AgeCommit message (Collapse)Author
2012-12-12cesar/lib: fix MAC_IS_GROUP macro, closes #3498Nélio Laranjeiro
The old version of the macro was wrong because of the endianess of the comparison. Comparing 01:00:5e:80:00:00 with 01:00:5e:00:00:01 corresponds in big endian (and our specific architecture) to compare 0x0100005e0001 with 0x805e0001. So 0x0100005e0001 is bigger than 0x805e0001 and the comparison was wrong in the reality 01:00:5e:80:00:00 is bigger than 01:00:5e:00:00:01.
2012-12-12cesar: move MAC_REVERSE macro to lib/types.h file, refs #3498Nélio Laranjeiro
2012-12-03cesar/lib: add new bitqueue tool, refs #3340Nicolas Schodet
2012-11-29cesar/hal/arch: add two levels for ilram, closes #3457Nélio Laranjeiro
2012-10-31cesar/lib/trace: work around eCos snprintf bug, refs #673, closes #3434Nicolas Schodet
When the output buffer is too small, eCos snprintf returns the number of characters written instead of the needed space. Make sure this does not happen.
2012-10-22cesar/lib: add mac_lookup_table_find_* to ilram2, refs #3455Nélio Laranjeiro
2012-10-22cesar: use CALLBACK macro to register callbacks, refs #3414Nélio Laranjeiro
2012-10-22cesar/{common,eoc,hal}: add the second ilram section, refs #3414Nélio Laranjeiro
The following files have been changed because they are included in eCos: - cesar/hal/arch/inc/regs_addr.h: change u32 by unsigned long - cesar/hal/arch/platform.h: put BEGIN_DECLS between #ifdef (__sparc__)
2012-10-18cesar/lib/list: rename some functions, closes #3429Yacine Belkadi
To have (hopefully) more intuitive names, rename: list_shift() to list_pop_front() list_unshift() to list_push_front() list_unshift_range() to list_push_front_range() To keep things consistent after the above renaming, rename: list_pop() to list_pop_back() list_push() to list_push_back() list_push_range() to list_push_back_range()
2012-10-18cesar/lib: modify MAC_IS_GROUP macro, closes #3158Nélio Laranjeiro
Mac addresses higher than 01:00:5e:80:00:00 are not considered as IGMP mac addresses. IGMP group mac address should have the 24th bit set to 0 because only the 23bits of the IP address is used to create the Mac address.
2012-10-17cesar/lib/test/test: test that only the expected tests failNicolas Schodet
2012-09-11cesar: make test code compile with CONFIG_STATS = n, closes #3234Nélio Laranjeiro
* VS_GET_STAT_REQ returns an MME with the result, failure or empty. * host unit tests of the SAR uses the override CE context to compute stats.
2012-09-07cesar/lib/seq_check: support QinQ/802.1ad, closes #3138Yacine Belkadi
2012-09-07cesar/lib/seq_check: auto-adjust seq num position for VLAN packets, refs #3138Yacine Belkadi
2012-09-07cesar/lib/seq_check: use ETH_TYPE_VLAN from ethernet.hYacine Belkadi
seq_check defined a macro for the VLAN Ethertype. Since then, a similar macro was added to ethernet.h. So let's use it.
2012-09-07cesar/{common,lib/seq_check}: move Ethertype macro to ethernet.hYacine Belkadi
seq_check defines the macro SEQ_CHECK_ET_IP in its header file. ethernet.h is more appropriate.
2012-09-07cesar/lib/seq_check: fix IP ethertypeYacine Belkadi
2012-09-07cesar: integrate mmtypes.h generated from mmtcgen, refs #409Nélio Laranjeiro
2012-08-27Merge branch 'qos'Nicolas Schodet
2012-07-02cesar/lib/dbg: allow duplicated init of fatal callbacksNicolas Schodet
This is needed in tests where a module is initialised several times.
2012-06-27cesar/lib/blk: add blk_slack_totalNicolas Schodet
2012-06-11cesar/lib: make room in fatal dump callbackNicolas Schodet
2012-05-10cesar/lib/test/bistream: memory corruption removed, closes #2991Thierry Carré
2012-05-10cesar/lib: add paste3,4 and paste expand 3, 4, refs #2928Nélio Laranjeiro
2012-04-11cesar/lib/doc: use doc templateNicolas Schodet
2012-04-11cesar/lib: fix doxygen commentsNicolas Schodet
2012-03-29cesar/lib/test: fix mbox thread test, refs #2996Nélio Laranjeiro
Thread were corrupted because the stack size was too small.
2012-03-23Merge branch 'addref'Nicolas Schodet
Conflicts: cesar/lib/src/blk.c
2012-03-22cesar/hal/arch: use arch_atomic_add_lock for reference counting, closes #2927Nicolas Schodet
2012-03-20cesar/lib/blk: add blk log debug toolNicolas Schodet
2012-03-20cesar/lib/dbg: increase debug message maximum sizeNicolas Schodet
2012-03-20cesar/lib/dbg: gracefully handle debug message overflowNicolas Schodet
2012-03-20cesar/lib/test/blk: reformat slack testNicolas Schodet
2012-03-20cesar/lib/dbg: reduce dbg_assert call code sizeNicolas Schodet
Use a static structure to store all information so that only one pointer must be loaded before dbg_assert_fail_desc is called.
2012-03-02cesar/lib: fix left shift is negative warning, refs #2949Marko Stankovic
2012-03-02cesar: redefine many size about ethernet packet, closes #2900Thierry Carré
- Add the difference between a packet tagged or not (simple vlan). - Check the length of the last mme of vs_get_pb_stats.cnf (#2900). - Split in 2 fields the vlan_tag in cp_mme_peer, useful for new macro. - Write the HPAV_MTYPE_MME in little endian, and so remove many swap16. This commit prepare the work to do for #2894 (strongly linked)
2011-11-17cesar/lib: add function to compute fixed round for 64 bits, closes #2788Jérémy Dufour
2011-11-17cesar/lib: prevent compilation when wrong use of scenario_event, closes #2797Jérémy Dufour
test_within macro will fail if not included in a block of code. In consequences, scenario_event macro will fail too.
2011-11-03cesar/{cp,cl,lib): return mactotei table into a vendor specific mme, refs #2559Thierry Carré
2011-11-02cesar/lib/blk: pass block memory size via blk_init(), refs #583Yacine Belkadi
lib/blk uses CONFIG_NB_BLK to determine the size of memory it can allocate. The present commit adds the possibility to pass that size of memory via blk_init(). This will allow to set that size dynamically on startup, based on the total memory size.
2011-11-02cesar/lib/scenario: fix typoYacine Belkadi
2011-10-20cesar/{lib,cp,common}: Review correctionsThierry Carré
2011-10-20cesar/{common,cp}: remove a define unused, and rename the second.Thierry Carré
2011-10-20cesar/lib: Wrong management of permission in lib statsThierry Carré
2011-09-16cesar/lib: avoid duplicated entries in mac_lookup table, closes #2710, #215Nélio Laranjeiro
2011-09-16cesar/lib/utils: add BF_MASKSNicolas Schodet
This can be used to generate a mask of several bit fields in the same word.
2011-09-09cesar/lib/test/head: fix compiler warningNicolas Schodet
2011-09-09cesar/lib/test/fixed: fix compiler warningNicolas Schodet
2011-09-08cesar/lib: add library to check sequence number in data packets, refs #2644Jérémy Dufour
By default, this library is disabled (at compilation) for performance reasons.
2011-09-07cesar/lib: add almost_eqfNicolas Schodet
This is used to compare floating point numbers for equality.