src/org/jnetpcap/Pcap.java
private int datalinkToId() {
		int id = JRegistry.mapDLTToId(datalink());

		return (id == JRegistry.NO_DLT_MAPPING) ? JProtocol.ETHERNET_ID : id;

	}
/**
	 * Performs a mapping of Pcap.datalink() to JRegistry ID. If doesn't exist
	 * defaults to ethernet.
	 * 
	 * @return JRegistry numerical ID for this datalink type.
	 */
Performs a mapping of Pcap.datalink() to JRegistry ID. If doesn't exist
defaults to ethernet.

@return JRegistry numerical ID for this datalink type.
Performs a mapping of Pcap . datalink () to JRegistry ID . If doesn ' t exist defaults to ethernet . @return JRegistry numerical ID for this datalink type .
private int datalinkToId() {
		int id = JRegistry.mapDLTToId(datalink());
		return (id == JRegistry.NO_DLT_MAPPING) ? JProtocol.ETHERNET_ID : id;
	}
private int datalinkToId ( ) { int id = JRegistry . mapDLTToId ( datalink ( ) ) ; return ( id == JRegistry . NO_DLT_MAPPING ) ? JProtocol . ETHERNET_ID : id ; }
Performs a mapping of Pcap.datalink() to JRegistry ID.
Performs a mapping of Pcap . datalink () to JRegistry ID .