[ovs-dev] [PATCH 0/4] replace sscanf() by our own implementation

Ben Pfaff blp at nicira.com
Sat Nov 9 23:55:03 UTC 2013


The Windows implementation of sscanf() is defective: it does not support
the 'hh' modifier.  There is an effort on to port OVS to Hyper-V, so this
is a problem.  This series adds an implementation of sscanf() to the tree,
under the name ovs_scan(), which allows for some improvements elsewhere
as a consequence.

Ben Pfaff (4):
  meta-flow: Fix typo in error message.
  bitmap: New macro BITMAP_N_LONGS for use in constant expressions.
  util: New function ovs_scan().
  Switch from sscanf() to ovs_scan() throughout the tree.

 lib/bitmap.h              |    6 +-
 lib/bond.c                |    7 +-
 lib/compiler.h            |    2 +
 lib/meta-flow.c           |   24 +-
 lib/netdev-linux.c        |   65 +++---
 lib/odp-util.c            |  555 +++++++++++++++++++--------------------------
 lib/ofp-parse.c           |    3 +-
 lib/packets.c             |    3 +-
 lib/packets.h             |   11 +-
 lib/util.c                |  454 ++++++++++++++++++++++++++++++++++++
 lib/util.h                |    2 +
 lib/vlandev.c             |    3 +-
 ovsdb/ovsdb.c             |    4 +-
 tests/library.at          |    3 +-
 tests/test-util.c         |  373 ++++++++++++++++++++++++++++++
 utilities/ovs-benchmark.c |    4 +-
 utilities/ovs-dpctl.c     |    3 +-
 vswitchd/bridge.c         |    4 +-
 vswitchd/system-stats.c   |    6 +-
 19 files changed, 1138 insertions(+), 394 deletions(-)

-- 
1.7.10.4




More information about the dev mailing list