Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
af_packet: Add support for dump interfaces
[vpp.git]
/
src
/
vnet
/
lisp-gpe
/
lisp_gpe.c
diff --git
a/src/vnet/lisp-gpe/lisp_gpe.c
b/src/vnet/lisp-gpe/lisp_gpe.c
index
018895a
..
c7b3d88
100644
(file)
--- a/
src/vnet/lisp-gpe/lisp_gpe.c
+++ b/
src/vnet/lisp-gpe/lisp_gpe.c
@@
-91,8
+91,8
@@
lisp_gpe_add_del_fwd_entry_command_fn (vlib_main_t * vm,
unformat_ip_address, &lloc,
unformat_ip_address, &rloc, &w))
{
unformat_ip_address, &lloc,
unformat_ip_address, &rloc, &w))
{
-
pair.lcl_loc = lloc
;
-
pair.rmt_loc = rloc
;
+
ip_address_copy (&pair.lcl_loc, &lloc)
;
+
ip_address_copy (&pair.rmt_loc, &rloc)
;
pair.weight = w;
pair.priority = 0;
vec_add1 (pairs, pair);
pair.weight = w;
pair.priority = 0;
vec_add1 (pairs, pair);
@@
-321,7
+321,7
@@
lisp_gpe_enable_disable_command_fn (vlib_main_t * vm,
/* Get a line of input. */
if (!unformat_user (input, unformat_line_input, line_input))
/* Get a line of input. */
if (!unformat_user (input, unformat_line_input, line_input))
- return
0
;
+ return
clib_error_return (0, "expected enable | disable")
;
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{