ff24746cca1ef0c92d46614158e6672acd6b63d3 |
|
10-Apr-2012 |
Stephen Hemminger <shemminger@vyatta.com> |
Convert to use rta_getattr_ functions User new functions (inspired by libmnl) to do type safe access of routeing attributes
/external/iproute2/tc/m_police.c
|
292f29b42c3444375b5ae7086484c99da7129d94 |
|
09-Apr-2008 |
Jesper Dangaard Brouer <hawk@diku.dk> |
ATM cell alignment. Introducing the function that does the ATM cell alignment, and modifying tc_calc_rtable() to use this based upon a linklayer parameter. Modified from original to use constants from atm.h and fix all the usages of rtable in same patch. Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
/external/iproute2/tc/m_police.c
|
1a5bd776a21044744d9229a6cee508691510da60 |
|
17-Apr-2008 |
Stephen Hemminger <stephen.hemminger@vyatta.com> |
In police, fix uninitialized "overhead" variable. Bug introduced by myself in an earlier patch series. Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
/external/iproute2/tc/m_police.c
|
f71f75f39b240b4306ad500e7f50cfc138458192 |
|
23-Mar-2008 |
Jesper Dangaard Brouer <jdb@comx.dk> |
police, implement overhead parameter parsing. For police, implement overhead parameter parsing. The change is ABI (Application Binary Interface) backward compatible with older kernels, but will first have effect from kernel 2.6.24. Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk> Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/tc/m_police.c
|
ef1d6f97ec725e5e942f092ab4f5a4ceff17bb9c |
|
03-Jan-2008 |
Stephen Hemminger <stephen.hemminger@vyatta.com> |
Revert "TC action parsing bug fix" This reverts commit 720a2e8d990707749b2cafa77ab3cd2b8241ec47. After further investigation it seems clear to me that reverting the commit 720a2e8d990707749b2... is the correct thing to do, since the real fix for the problem this commit was supposed to fix was instead fixed in commit c29391c7c68f031e246c... Whatever you specify after a u32 police you will now get a syntax error, and according to "tc filter add u32 help" there are several things that you are supposed to be able to specify after a police. So, Steven, please revert 720a2e8d990707749b2...
/external/iproute2/tc/m_police.c
|
d5f46f9cc3856af532e852ef29fd7ddfd141faf0 |
|
05-Sep-2007 |
Jesper Dangaard Brouer <hawk@comx.dk> |
Cleanup: tc_calc_rtable(). Change tc_calc_rtable() to take a tc_ratespec struct as an argument. (cell_log still needs to be passed on as a parameter, because -1 indicate that the cell_log needs to be computed by the function.). Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk> Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/tc/m_police.c
|
c29391c7c68f031e246c661ec1d4346693d5e445 |
|
18-Jul-2007 |
Patrick McHardy <kaber@trash.net> |
Bug fix tc action drop >>That command is from a script that used to work with iproute2-ss020116 >>(2002!), which had the following in tc/m_police.c: >> >>210 } else if (strcmp(*argv, "action") == 0) { >>211 NEXT_ARG(); >>212 if (get_police_result(&p.action, &presult, *argv)) { >> >>I don't know when that bit was dropped, but it used to be there. :-) > > > > Indeed, I missed that. I'll fix up the patch .. OK this patch fixes parsing of "action ...". I've removed the erroring on unknown arguments again since in that case the caller should continue parsing.
/external/iproute2/tc/m_police.c
|
720a2e8d990707749b2cafa77ab3cd2b8241ec47 |
|
18-Jul-2007 |
Patrick McHardy <kaber@trash.net> |
TC action parsing bug fix > > Is it a bug that: > > # tc filter add dev eth0 parent 1: protocol ip prio 0 handle 0xfffffff > fw police rate 1 burst 1 mpu 0 mtu 1 action drop > ^^^^^^^^^^^ > creates a filter that looks like: > > # tc filter ls dev eth0 > filter parent 1: protocol ip pref 49152 fw > filter parent 1: protocol ip pref 49152 fw handle 0xfffffff police 0x1 > rate 0bit burst 0b mtu 1b action reclassify > ^^^^^^^^^^^^^^^^^ > ref -543190236 bind 4 > > (which reclassifies and thus lets 0xfffffff-marked packets through). > > I'm pretty sure this used to work under 2.4.x (though I no longer have a > 2.4 box to test with), but it hasn't worked on any of the 2.6.x kernels > I've tried (with both iproute2-ss060323 and 070710). Good catch. It seems this is merely a parsing error, iproute doesn't have an "action" parameter and aborts parsing, so it uses the default value of "RECLASSIFY". It never had this parameter, so this patch removes it from the help text and makes it return an error.
/external/iproute2/tc/m_police.c
|
76dc0aa28fe6fa78e263bf0250c1e42c584dd544 |
|
04-Mar-2007 |
Patrick McHardy <kaber@trash.net> |
Introduce tc_calc_xmitsize and use where appropriate [IPROUTE]: Introduce tc_calc_xmitsize and use where appropriate Add tc_calc_xmitsize() as complement to tc_calc_xmittime(), which calculates the size that can be transmitted at a given rate during a given time. Replace all expressions of the form "size = rate*tc_core_tick2usec(time))/1000000" by tc_calc_xmitsize() calls. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/tc/m_police.c
|
ae665a522bd46bea44c5ea84c89c8b1731954170 |
|
05-Dec-2006 |
Stephen Hemminger <shemminger@osdl.org> |
Remove trailing whitespace Go through source files and remove all trailing whitespace Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
/external/iproute2/tc/m_police.c
|
ebf32083e0a15b416357087362738e123cd0df9f |
|
08-Aug-2006 |
Jamal Hadi Salim <hadi@cyberus.ca> |
First part of cleaning up the help output of actions. Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
/external/iproute2/tc/m_police.c
|
14ee9e615939b5bd193279535a0368d5f43950e3 |
|
18-Jan-2005 |
6!tgraf <6!tgraf> |
Use parse_rtattr_nested (Logical change 1.129)
/external/iproute2/tc/m_police.c
|
1b52a7622ea8eda9980ce2dbe984985ac092d92a |
|
18-Jan-2005 |
6!tgraf <6!tgraf> |
Use NLMSG_TAIL (Logical change 1.127)
/external/iproute2/tc/m_police.c
|
0284dcde32ccb3181c04f449ea41a0502fb91f07 |
|
07-Oct-2004 |
net[shemminger]!shemminger <net[shemminger]!shemminger> |
Import patch iproute2-typo-fixes-1.diff (Logical change 1.94)
/external/iproute2/tc/m_police.c
|
95812b56a5a66e7e9a21744cfe8bc0bb9791ea98 |
|
28-Sep-2004 |
net[shemminger]!kaber <net[shemminger]!kaber> |
: prevent tc crashes (Logical change 1.81)
/external/iproute2/tc/m_police.c
|
f2f99e2eefdbd9cb6a750b19a7b3036db351b983 |
|
31-Aug-2004 |
osdl.net!shemminger <osdl.net!shemminger> |
no longer need xstats stub (Logical change 1.77)
/external/iproute2/tc/m_police.c
|
2373fde9b0ba14c1758290a68332f1af9882abc0 |
|
14-Aug-2004 |
osdl.net!shemminger <osdl.net!shemminger> |
new stuff from jamal. (Logical change 1.66)
/external/iproute2/tc/m_police.c
|
aba5acdfdb347d2c21fc67d613d83d4430ca3937 |
|
15-Apr-2004 |
osdl.org!shemminger <osdl.org!shemminger> |
(Logical change 1.3)
/external/iproute2/tc/m_police.c
|
86fdf0e47be697587efcf9602cd1f952a1d73170 |
|
15-Apr-2004 |
osdl.org!shemminger <osdl.org!shemminger> |
Initial revision
/external/iproute2/tc/m_police.c
|