Type: improvement
Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
Change-Id: I769db1213b0936abbf304bc6cf9dbcfbbebf06aa
pr.punt.l4.port = ~0;
else if (unformat (input, "socket %s", &socket_name))
;
pr.punt.l4.port = ~0;
else if (unformat (input, "socket %s", &socket_name))
;
+ else if (unformat (input, "reason %U", unformat_punt_reason,
+ &pr.punt.exception.reason))
+ pr.type = PUNT_TYPE_EXCEPTION;
else
{
error = clib_error_return (0, "parse error: '%U'",
else
{
error = clib_error_return (0, "parse error: '%U'",
;
else if (unformat (input, "all"))
pr.punt.l4.port = ~0;
;
else if (unformat (input, "all"))
pr.punt.l4.port = ~0;
+ else if (unformat (input, "reason %U", unformat_punt_reason,
+ &pr.punt.exception.reason))
+ pr.type = PUNT_TYPE_EXCEPTION;
else
{
error = clib_error_return (0, "parse error: '%U'",
else
{
error = clib_error_return (0, "parse error: '%U'",