From Harald Welte:
[obnox/wireshark/wip.git] / epan / sna-utils.h
1 /* sna-utils.h
2  * Definitions for SNA dissection.
3  *
4  * $Id$
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19  */
20
21 #ifndef __SNA_UTILS__
22 #define __SNA_UTILS__
23
24 #include <glib.h>
25 #include <stdio.h>
26
27 /*
28  * Structure used to represent an FID Type 4 address; gives the layout of the
29  * data pointed to by an AT_SNA "address" structure if the size is
30  * SNA_FID_TYPE_4_ADDR_LEN.
31  */
32 #define SNA_FID_TYPE_4_ADDR_LEN 6
33 struct sna_fid_type_4_addr {
34         guint32 saf;
35         guint16 ef;
36 };
37
38 extern gchar *sna_fid_to_str(const address *addr);
39 extern void sna_fid_to_str_buf(const address *addr, gchar *buf, int buf_len);
40
41 #endif