source: rtems-libbsd/freebsd/contrib/tcpdump/nlpid.c @ 8440506

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 8440506 was 8440506, checked in by Chris Johns <chrisj@…>, on 06/15/15 at 07:42:23

Add tcpdump and libpcap.

  • Update the file builder generator to handle generator specific cflags and includes. The tcpdump and libpcap have localised headers and need specific headers paths to see them. There are also module specific flags and these need to be passed to the lex and yacc generators.
  • Add the tcpdump support.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1#include <machine/rtems-bsd-user-space.h>
2
3/*
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that: (1) source code
6 * distributions retain the above copyright notice and this paragraph
7 * in its entirety, and (2) distributions including binary code include
8 * the above copyright notice and this paragraph in its entirety in
9 * the documentation or other materials provided with the distribution.
10 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
11 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
12 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13 * FOR A PARTICULAR PURPOSE.
14 *
15 * Original code by Hannes Gredler (hannes@juniper.net)
16 */
17
18#ifndef lint
19static const char rcsid[] _U_ =
20    "@(#) $Header: /tcpdump/master/tcpdump/nlpid.c,v 1.4 2004-10-19 15:27:55 hannes Exp $ (LBL)";
21#endif
22
23#ifdef HAVE_CONFIG_H
24#include "config.h"
25#endif
26
27#include <tcpdump-stdinc.h>
28#include "interface.h"
29#include "nlpid.h"
30
31const struct tok nlpid_values[] = {
32    { NLPID_NULLNS, "NULL" },
33    { NLPID_Q933, "Q.933" },
34    { NLPID_LMI, "LMI" },
35    { NLPID_SNAP, "SNAP" },
36    { NLPID_CLNP, "CLNP" },
37    { NLPID_ESIS, "ES-IS" },
38    { NLPID_ISIS, "IS-IS" },
39    { NLPID_CONS, "CONS" },
40    { NLPID_IDRP, "IDRP" },
41    { NLPID_SPB, "ISIS_SPB" },
42    { NLPID_MFR, "FRF.15" },
43    { NLPID_IP, "IPv4" },
44    { NLPID_PPP, "PPP" },
45    { NLPID_X25_ESIS, "X25 ES-IS" },
46    { NLPID_IP6, "IPv6" },
47    { 0, NULL }
48};
Note: See TracBrowser for help on using the repository browser.