public void testHttpFormattingWithResolveAddressEnabled() throws IOException {
JLogger.getLogger(JConfig.class).setLevel(Level.FINE);
JLogger.getLogger(Resolver.class.getPackage()).setLevel(Level.FINER);
JFormatter out = new TextFormatter(OUT);
out.setResolveAddresses(true);
PcapPacket packet = TestUtils.getPcapPacket("tests/test-http-jpeg.pcap", 5);
Ip4 ip = new Ip4();
Ethernet eth = new Ethernet();
if (packet.hasHeader(eth)) {
out.format(eth);
}
if (packet.hasHeader(ip)) {
// out.format(ip);
out.format(ip);
System.out.println();
}
// out.format(packet);