[PATCH] net/tap: fix the overflow of the network interface index.
    Stephen Hemminger 
    stephen at networkplumber.org
       
    Thu Jul 21 17:19:21 CEST 2022
    
    
  
On Thu, 21 Jul 2022 11:13:01 +0000
Alex Kiselev <alex at bisonrouter.com> wrote:
> On Linux and most other systems, network interface index is a 32-bit
> integer.  Indexes overflowing the 16-bit integer are frequently seen
> when used inside a Docker container.
> 
> Signed-off-by: Alex Kiselev <alex at bisonrouter.com>
Looks good, Linux API is inconsistent in use of signed vs unsigned
int for the ifindex. But negative values are never used/returned.
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
    
    
More information about the dev
mailing list