source: vendor/emx/current/include/netnb/nb.h

Last change on this file was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 992 bytes
Line 
1/* Copyright (C)1996 by Holger Veit
2 * This file may be freely used within the EMX development system
3 */
4
5/* NETBIOS declarations */
6
7#ifndef _NETNB_NB_H_
8#define _NETNB_NB_H_
9
10#include <sys/socket.h>
11#include <netinet/in.h>
12
13#define NBPROTO_NB 1
14#define NB_FAMILY AF_NETBIOS
15#define NB_ADDRSIZE sizeof(struct sockaddr_nb)
16#define NB_UNIQUE 0
17#define NB_GROUP 1
18#define NB_BROAD 2
19#define NB_NAMELEN 16
20#define NB_NETIDLEN 8
21#define NB_HOSTLEN 12
22#define NB_PORTLEN 4
23/* 1234567890123456 */
24#define NB_BCAST_NAME "* "
25#define NB_BLANK_NAME " "
26#define NB_NULL_NAME "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
27
28#define NBPORT_RESERVED IPPORT_RESERVED
29#define NBPORT_USERRESERVED IPPORT_USERRESERVED
30
31/* address format for netbios */
32struct sockaddr_nb {
33 short snb_family; /* protocol family */
34 short snb_type; /* unique/multicast */
35 char snb_netid[NB_NETIDLEN]; /* netid */
36 char snb_name[NB_NAMELEN]; /* name */
37};
38
39#endif /* !_NETNB_NB_H_ */
40
Note: See TracBrowser for help on using the repository browser.