lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 27 Jun 2017 09:55:12 -0700
From:   Eric Dumazet <eric.dumazet@...il.com>
To:     "McCabe, Robert J" <Robert.McCabe@...kwellcollins.com>
Cc:     netdev@...r.kernel.org, McCabe@...kwellcollins.com
Subject: Re: [PATCH 1/1] tc: custom qdisc pkt size translation table

On Tue, 2017-06-27 at 11:29 -0500, McCabe, Robert J wrote:
> Added the "custom" linklayer qdisc stab option.
> This allows the user to specify the pkt size translation
> parameters from stdin.
> Example:
>    tc qdisc add ... stab tsize 8 linklayer custom htb
>    Custom size table:
>    InputSizeStart -> IntputSizeEnd: Output Pkt Size
>    0 - 255: 400
>    256 - 511: 800
>    512 - 767: 1200
>    768 - 1023: 1600
>    1024 - 1279: 2000
>    1280 - 1535: 2400
>    1536 - 1791: 2800
>    1792 - 2047: 3200
> 
> Signed-off-by: McCabe, Robert J <Robert.McCabe@...kwellcollins.com>
> ---
>  include/linux/pkt_sched.h |  1 +
>  tc/tc_core.c              | 51 +++++++++++++++++++++++++++++++++++++++++++++++
>  tc/tc_core.h              |  2 +-
>  tc/tc_stab.c              |  4 +++-
>  tc/tc_util.c              |  5 +++++
>  5 files changed, 61 insertions(+), 2 deletions(-)
> 
> diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
> index 099bf55..289bb81 100644
> --- a/include/linux/pkt_sched.h
> +++ b/include/linux/pkt_sched.h
> @@ -82,6 +82,7 @@ enum tc_link_layer {
>  	TC_LINKLAYER_UNAWARE, /* Indicate unaware old iproute2 util */
>  	TC_LINKLAYER_ETHERNET,
>  	TC_LINKLAYER_ATM,
> +	TC_LINKLAYER_CUSTOM,
>  };
>  #define TC_LINKLAYER_MASK 0x0F /* limit use to lower 4 bits */
>  


You can not do this : This file is coming from the kernel
( include/uapi/linux/pkt_sched.h )

Since your patch is user space only, you need to find another way ?



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ