Skip to content

Commit 023cd4b

Browse files
committed
Fix #883.
1 parent 381f1d3 commit 023cd4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ff_veth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,7 @@ ff_veth_setup_interface(struct ff_veth_softc *sc, struct ff_port_cfg *cfg)
873873
printf("%s: ff_veth_setaddr failed\n", sc->host_ifname);
874874
}
875875

876-
fib_num = cfg->port_id;
877-
ret = ff_veth_set_gateway(sc, fib_num);
876+
ret = ff_veth_set_gateway(sc, RT_DEFAULT_FIB);
878877
if (ret != 0) {
879878
printf("%s: ff_veth_set_gateway failed\n", sc->host_ifname);
880879
}
@@ -885,6 +884,7 @@ ff_veth_setup_interface(struct ff_veth_softc *sc, struct ff_port_cfg *cfg)
885884

886885
#ifdef FF_IPFW
887886
if (cfg->nb_pr) {
887+
fib_num = cfg->port_id;
888888
ff_ipfw_add_simple_v4(cfg, NULL, fib_num);
889889
}
890890
#endif

0 commit comments

Comments
 (0)