source: branches/libc-0.6/src/emx/include/netnb/nb.h

Last change on this file was 183, checked in by bird, 22 years ago

#434: Initial tcpip header merges.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.3 KB
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 18 /* temporary hack? */
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 (NB_NAMELEN - NB_HOSTLEN)
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/* must match IOPORT_* constants in netinet/in.h! */
29#ifdef TCPV40HDRS
30#define NBPORT_RESERVED "1024"
31#define NBPORT_USERRESERVED "5000"
32#else
33#define NBPORT_RESERVED "49152"
34#define NBPORT_USERRESERVED "65535"
35#endif
36
37/* address format for netbios */
38#pragma pack(1)
39struct sockaddr_nb {
40#ifdef TCPV40HDRS
41 short snb_family; /* protocol family */
42#else
43 u_char snb_len;
44 u_char snb_family; /* netbios protocol family */
45#endif
46 short snb_type; /* unique/multicast */
47 char snb_netid[NB_NETIDLEN]; /* netid */
48 char snb_name[NB_NAMELEN]; /* name */
49};
50#pragma pack()
51
52#endif /* !_NETNB_NB_H_ */
53
Note: See TracBrowser for help on using the repository browser.