/* create the register table model which we want to monitor */
statsRegTableModel = new StatsRegTableModel(nf2, aAddresses, descriptions);
}
protected void updateIP() {
IPAddress ip;
JTextField field = ipDestAddrTextField;
try {
ip = new IPAddress(field.getText());
field.setBackground(Color.WHITE);
nf2.writeReg(NFDeviceConsts.EVT_CAP_IP_DST_REG, ip.getIpInt());
} catch (Exception e) {
field.setBackground(Color.RED);
}
field = ipSrcAddrTextField;
try {
ip = new IPAddress(field.getText());
field.setBackground(Color.WHITE);
nf2.writeReg(NFDeviceConsts.EVT_CAP_IP_SRC_REG, ip.getIpInt());
} catch (Exception e) {
field.setBackground(Color.RED);
}
nf2.writeReg(NFDeviceConsts.EVT_CAP_ETHERTYPE_REG, EthernetProtocol.IP);