Network Layer Protocol IDs (libpcap/nlpid.h)

nmap · libpcap/nlpid.h · c · LGPL-3.0
infra, ui, tag:libpcap, tag:protocols, tag:portability

Header defining network-layer protocol identifier constants missing from some systems, used by libpcap packet capture code. Reuse when portable protocol ID definitions are needed.

// Source: https://github.com/nmap/nmap | License: LGPL-3.0 | Modified files must remain under LGPL-3.0
// Modifications to this file must remain under LGPL-3.0.
// Provided via justclaw.it.com; keep this notice with the code.
/*
 * Copyright (c) 1996
 *	Juniper Networks, Inc.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that: (1) source code distributions
 * retain the above copyright notice and this paragraph in its entirety, (2)
 * distributions including binary code include the above copyright notice and
 * this paragraph in its entirety in the documentation or other materials
 * provided with the distribution.  The name of Juniper Networks may not
 * be used to endorse or promote products derived

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key