src/org/jnetpcap/packet/JRegistry.java
public static int lookupId(Class<? extends JHeader> c) {

		if (JSubHeader.class.isAssignableFrom(c)) {
			AnnotatedHeader header =
					lookupAnnotatedSubHeader((Class<? extends JSubHeader<? extends JSubHeader<?>>>) c);

			return header.getId();
		}

		Entry e = mapByClassName.get(c.getCanonicalName());
		if (e == null) {
			e = createNewEntry(c);
		}

		return e.id;
	}
/**
	 * Look's up the protocol header ID using a class name.
	 * 
	 * @param c
	 *          class of the header
	 * @return numerical ID of the protocol header
	 */
Look's up the protocol header ID using a class name.

@param c
class of the header
@return numerical ID of the protocol header
Look ' s up the protocol header ID using a class name . @param c class of the header @return numerical ID of the protocol header
public static int lookupId(Class<? extends JHeader> c) {
		if (JSubHeader.class.isAssignableFrom(c)) {
			AnnotatedHeader header =
					lookupAnnotatedSubHeader((Class<? extends JSubHeader<? extends JSubHeader<?>>>) c);
			return header.getId();
		}
		Entry e = mapByClassName.get(c.getCanonicalName());
		if (e == null) {
			e = createNewEntry(c);
		}
		return e.id;
	}
public static int lookupId ( Class < ? extends JHeader > c ) { if ( JSubHeader . class . isAssignableFrom ( c ) ) { AnnotatedHeader header = lookupAnnotatedSubHeader ( ( Class < ? extends JSubHeader < ? extends JSubHeader < ? > > > ) c ) ; return header . getId ( ) ; } Entry e = mapByClassName . get ( c . getCanonicalName ( ) ) ; if ( e == null ) { e = createNewEntry ( c ) ; } return e . id ; }
Look's up the protocol header ID using a class name.
Look ' s up the protocol header ID using a class name .