X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fodp-util.c;h=67d1b3ee7951eaeb9d7710fbb050606f13c87893;hb=8722022c0c0d29d3f998dc26c50944c456e56646;hp=87ac92b82a4c1fa5e32ef41b02c50161f058ab21;hpb=02dd3123a0e312f1d33403e744af52dd6096f12d;p=sliver-openvswitch.git diff --git a/lib/odp-util.c b/lib/odp-util.c index 87ac92b82..67d1b3ee7 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,6 +55,9 @@ format_odp_action(struct ds *ds, const union odp_action *a) case ODPAT_CONTROLLER: ds_put_format(ds, "ctl(%"PRIu32")", a->controller.arg); break; + case ODPAT_SET_TUNNEL: + ds_put_format(ds, "set_tunnel(0x%08"PRIx32")", ntohl(a->tunnel.tun_id)); + break; case ODPAT_SET_VLAN_VID: ds_put_format(ds, "set_vlan(%"PRIu16")", ntohs(a->vlan_vid.vlan_vid)); break; @@ -90,7 +93,7 @@ format_odp_action(struct ds *ds, const union odp_action *a) ds_put_format(ds, "set_tp_dst(%"PRIu16")", ntohs(a->tp_port.tp_port)); break; default: - ds_put_format(ds, "***bad action %"PRIu16"***", a->type); + ds_put_format(ds, "***bad action 0x%"PRIx16"***", a->type); break; } }