private boolean checkMatchIp(Map<String,Object> rows){
  boolean matchEther=false;
  String val=(String)rows.get(StaticFlowEntryPusher.COLUMN_DL_TYPE);
  if (val != null) {
    int type=0;
    if (val.startsWith("0x")) {
      type=Integer.parseInt(val.substring(2),16);
    }
 else {
      try {
        type=Integer.parseInt(val);
      }
 catch (      NumberFormatException e) {
      }
    }
    if (type == 2048)     matchEther=true;
  }
  if ((rows.containsKey(StaticFlowEntryPusher.COLUMN_NW_DST) || rows.containsKey(StaticFlowEntryPusher.COLUMN_NW_SRC) || rows.containsKey(StaticFlowEntryPusher.COLUMN_NW_PROTO)|| rows.containsKey(StaticFlowEntryPusher.COLUMN_NW_TOS)) && (matchEther == false))   return false;
  return true;
}

private boolean checkMatchIp ( Map < String , Object > rows ) { boolean matchEther = false ; String val = ( String ) rows . get ( StaticFlowEntryPusher . COLUMN_DL_TYPE ) ; if ( val != null ) { int type = 0 ; if ( val . startsWith ( "0x" ) ) { type = Integer . parseInt ( val . substring ( 2 ) , 16 ) ; } else { try { type = Integer . parseInt ( val ) ; } catch ( NumberFormatException e ) { } } if ( type == 2048 ) matchEther = true ; } if ( ( rows . containsKey ( StaticFlowEntryPusher . COLUMN_NW_DST ) || rows . containsKey ( StaticFlowEntryPusher . COLUMN_NW_SRC ) || rows . containsKey ( StaticFlowEntryPusher . COLUMN_NW_PROTO ) || rows . containsKey ( StaticFlowEntryPusher . COLUMN_NW_TOS ) ) && ( matchEther == false ) ) return false ; return true ; }
checks to see if the user matches ip information without checking for the correct ether - type ( 2048 ) .
