Commit 3d734bd4 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk Committed by Adam Wujek

wrsw_rtud: remove _remove force_

The option was never implemented and nobody remembers what it was supposed to
be.
parent 3a5e9a35
......@@ -118,7 +118,7 @@ void show_help(char *prgname)
fprintf(stderr,""
" help: Show this message\n"
" list: List the routing table (same as empty command)\n"
" remove <ifnum> [<force>]: Remove all dynamic entries for one interface\n"
" remove <ifnum>: Remove all dynamic entries for one interface\n"
" add <mac (XX:XX:XX:XX:XX)> <ifnum> [<mode>]: Add entry for a specific \n"
" MAC address (mode={1=dynamic,0=static}\n"
" vlan <vid> <fid> <hex mask> [<drop>, <prio>, <has_prio>, <prio_override>]: \n"
......
......@@ -51,15 +51,9 @@ int rtudexp_clear_entries(const struct minipc_pd *pd,
uint32_t * args, void *ret)
{
int iface_num = (int)args[0];
int force = (int)args[1];
int *p_ret = (int *)ret; //force pointed to int type
pr_debug("Removing dynamic entries on interface %d, force=%d\n", iface_num, force);
//Do nothing
if (force)
pr_debug("wr%d > force %d is not implemented\n",
iface_num, force);
pr_debug("Removing dynamic entries on interface %d\n", iface_num);
rtu_fd_clear_entries_for_port(iface_num);
*p_ret = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment