shiibaryu / storm_control

Storm Control for Linux
8 stars 3 forks source link

how can I update the iproute2 to the newest version iproute2-5.16.0? #1

Open shockingchen opened 2 years ago

shockingchen commented 2 years ago

Hi expert I want to update the iproute2 to the newest version iproute2-5.16. How can I do it?

Thank you

shockingchen commented 2 years ago

I have make installed the newest iproute2, did I need to go to the iproute2-4.19.0 folder,do the make install?

shockingchen commented 2 years ago

echo -I/../include/ -I/../include/ make -C /lib/modules/4.15.0-29-generic/build M=/home/forlinx/work/OK1028-linux-fs/packages/apps/networking/stormcontrol/k_mod V=0 modules make[1]: Entering directory '/usr/src/linux-headers-4.15.0-29-generic' Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel" CC [M] /home/forlinx/work/OK1028-linux-fs/packages/apps/networking/stormcontrol/k_mod/storm_control.o /home/forlinx/work/OK1028-linux-fs/packages/apps/networking/stormcontrol/k_mod/storm_control.c: In function ‘find_unknown_unicast’: /home/forlinx/work/OK1028-linux-fs/packages/apps/networking/stormcontrol/k_mod/storm_control.c:496:5: error: implicit declaration of function ‘br_fdb_find_port’; did you mean ‘sk_add_bind_node’? [-Werror=implicit-function-declaration] if(br_fdb_find_port(dev,eth_hdr(skb)->h_dest,0)){ ^~~~ sk_add_bind_node /home/forlinx/work/OK1028-linux-fs/packages/apps/networking/stormcontrol/k_mod/storm_control.c:494:21: warning: unused variable ‘br’ [-Wunused-variable] struct net_bridge *br = netdev_priv(dev); ^~ cc1: some warnings being treated as errors scripts/Makefile.build:339: recipe for target '/home/forlinx/work/OK1028-linux-fs/packages/apps/networking/stormcontrol/k_mod/storm_control.o' failed make[2]: [/home/forlinx/work/OK1028-linux-fs/packages/apps/networking/stormcontrol/k_mod/storm_control.o] Error 1 Makefile:1552: recipe for target 'module/home/forlinx/work/OK1028-linux-fs/packages/apps/networking/stormcontrol/k_mod' failed make[1]: [module/home/forlinx/work/OK1028-linux-fs/packages/apps/networking/stormcontrol/k_mod] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-29-generic' Makefile:9: recipe for target 'all' failed make: *** [all] Error 2

when build the k_mod,it throws an error

manasa428-star commented 2 weeks ago

Hi, how to see the output of this code ? there are no logs coming up after executing the command sudo /sbin/ip storm add dev ens0 type broadcast pps 1000 100