Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (36 sloc) 1.897 kb
df7b968d »
2012-02-15 Print pretty names for flags, pretty documentation, allow a user spec…
1 /*
2 * Copyright (c) 2012, Yahoo! Inc All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer. Redistributions
9 * in binary form must reproduce the above copyright notice, this list
10 * of conditions and the following disclaimer in the documentation and/or
11 * other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
18 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * Author: John Eaglesham
26 */
27
013e89b1 »
2012-02-15 Update flag types, update documentation.
28 /* Require users to free() the returned pointer. */
df7b968d »
2012-02-15 Print pretty names for flags, pretty documentation, allow a user spec…
29 char *tcp_flags_to_names( unsigned char );
013e89b1 »
2012-02-15 Update flag types, update documentation.
30 char *ip_flags_to_names( unsigned char );
31
32 /* Returned pointer is to a static buffer, don't call free() */
df7b968d »
2012-02-15 Print pretty names for flags, pretty documentation, allow a user spec…
33 char *icmp_type_to_name( unsigned char );
34 char *icmp_code_to_name( unsigned char, unsigned char );
013e89b1 »
2012-02-15 Update flag types, update documentation.
35 char *icmp6_type_to_name( unsigned char );
36 char *icmp6_code_to_name( unsigned char, unsigned char );
37 char *ip_protocol_to_name( unsigned char );
38 char *ether_protocol_to_name( unsigned short );
Something went wrong with that request. Please try again.