aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-11-16 00:53:53 -0800
committerNeale Ranns <nranns@cisco.com>2018-11-17 09:20:01 +0000
commit47527b24a8315b13e1002758a18357441df51be3 (patch)
treee5c87dcd0c1a1e5387303356a21c5ef0a00bbc70 /src/vnet
parenta7dcae72cf4520df64dd75427541ca3c11cd8475 (diff)
IP-punt: add documentation to the API and fix IP address init
Change-Id: I0bdff4dbfd81d67e82211ce9fdc97209a1b23c66 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ip/ip.api2
-rw-r--r--src/vnet/ip/ip4_punt_drop.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/ip/ip.api b/src/vnet/ip/ip.api
index cf25291b9bf..b08af5657fc 100644
--- a/src/vnet/ip/ip.api
+++ b/src/vnet/ip/ip.api
@@ -633,6 +633,8 @@ autoreply define ip_punt_police
@param context - sender context, to match reply w/ request
@param is_add - 1 to add neighbor, 0 to delete
@param is_ipv6 - 1 for IPv6 neighbor, 0 for IPv4
+ @param rx_sw_if_index - specify the original RX interface of traffic
+ that should be redirected. ~0 means any interface.
@param tx_sw_if_index - the TX interface to which traffic shoulde be
redirected.
@param nh - The next-hop to redirect the traffic to.
diff --git a/src/vnet/ip/ip4_punt_drop.c b/src/vnet/ip/ip4_punt_drop.c
index ed4cbcf9f2e..cec2c5aed9b 100644
--- a/src/vnet/ip/ip4_punt_drop.c
+++ b/src/vnet/ip/ip4_punt_drop.c
@@ -414,10 +414,10 @@ ip4_punt_redirect_cmd (vlib_main_t * vm,
vlib_cli_command_t * cmd)
{
unformat_input_t _line_input, *line_input = &_line_input;
+ ip46_address_t nh = ip46_address_initializer;
clib_error_t *error = 0;
u32 rx_sw_if_index = 0;
u32 tx_sw_if_index = 0;
- ip46_address_t nh;
vnet_main_t *vnm;
u8 is_add;
#n229'>229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311