src/org/jnetpcap/packet/JRegistry.java
public static AnnotatedHeader lookupAnnotatedHeader(JProtocol protocol) {
		Class<? extends JHeader> c = protocol.getHeaderClass();
		Entry e = MAP_BY_ID[protocol.getId()];

		if (e.annotatedHeader == null) {
			errors.clear();
			e.annotatedHeader = inspect(c, errors);

			registerAnnotatedSubHeaders(e.annotatedHeader.getHeaders());
		}

		return e.annotatedHeader;
	}
/**
	 * Lookup annotated header.
	 * 
	 * @param protocol
	 *          the protocol
	 * @return the annotated header
	 */
Lookup annotated header.

@param protocol
the protocol
@return the annotated header
Lookup annotated header . @param protocol the protocol @return the annotated header
public static AnnotatedHeader lookupAnnotatedHeader(JProtocol protocol) {
		Class<? extends JHeader> c = protocol.getHeaderClass();
		Entry e = MAP_BY_ID[protocol.getId()];
		if (e.annotatedHeader == null) {
			errors.clear();
			e.annotatedHeader = inspect(c, errors);
			registerAnnotatedSubHeaders(e.annotatedHeader.getHeaders());
		}
		return e.annotatedHeader;
	}
public static AnnotatedHeader lookupAnnotatedHeader ( JProtocol protocol ) { Class < ? extends JHeader > c = protocol . getHeaderClass ( ) ; Entry e = MAP_BY_ID [ protocol . getId ( ) ] ; if ( e . annotatedHeader == null ) { errors . clear ( ) ; e . annotatedHeader = inspect ( c , errors ) ; registerAnnotatedSubHeaders ( e . annotatedHeader . getHeaders ( ) ) ; } return e . annotatedHeader ; }
Lookup annotated header.
Lookup annotated header .