code: @ConditionalOnClass({PcapIf.class})
      //@ConditionalOnBean({PcapIf.class, StringBuilder.class})
      @Bean(PCAP_BUILDER_BEAN_NAME)
      public Pcap.Builder pcapBuilder(@Qualifier(PCAP_IF_BEAN_NAME) PcapIf pcapIf,
                                      @Qualifier(ERRBUF_BEAN_NAME) StringBuilder errbuf) {
          String source = pcapIf.getName();
          Pcap.Builder builder = new Pcap.Builder()
                  .source(source)
                  .snaplen(properties.getSnapshot())
                  .promiscuousMode(properties.getPromiscuous())
                  .timeout(properties.getTimeout())
                  .immediateMode(properties.getImmediate())
                  .timestampType(properties.getTimestampType())
                  .direction(properties.getDirection())
                  .timestampPrecision(properties.getTimestampPrecision())
                  .rfmon(properties.getRfmon())
                  .enableNonBlock(!properties.getBlocking())
                  .dataLinkType(properties.getDatalink())
                  .fileName(properties.getFile())
                  .errbuf(errbuf);
          return builder;
      }
docs: Pcap builder.
  @param pcapIf pcap if.
  @param errbuf error buffer.
  @return returns pcap builder.