Skip to content

Commit

Permalink
Use 0 instead of IPADDR_ANY for mask.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshasa committed Jun 26, 2013
1 parent 77d9857 commit 494741b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/trema/conversion-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ ofp_match_to_r_match( const struct ofp_match *match ) {
{ \
VALUE r_value = rb_iv_get( r_match, at_value ); \
if ( !NIL_P( r_value ) ) { \
uint32_t ipv4_mask = INADDR_ANY; \
uint32_t ipv4_mask = 0; \
VALUE r_mask = rb_iv_get( r_match, at_value "_mask" ); \
if ( !NIL_P( r_mask ) ) { \
ipv4_mask = nw_addr_to_i( r_mask ); \
Expand Down

0 comments on commit 494741b

Please sign in to comment.