Ignore:
Timestamp:
May 19, 2003, 4:41:00 AM (22 years ago)
Author:
bird
Message:

#434: Initial tcpip header merges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/netnb/nb.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r182 r183  
    1212
    1313#define NBPROTO_NB      1
    14 #define NB_FAMILY       AF_NETBIOS
     14#define NB_FAMILY       18 /* temporary hack? */
    1515#define NB_ADDRSIZE     sizeof(struct sockaddr_nb)
    1616#define NB_UNIQUE       0
     
    2020#define NB_NETIDLEN     8
    2121#define NB_HOSTLEN      12
    22 #define NB_PORTLEN      4
     22#define NB_PORTLEN      (NB_NAMELEN - NB_HOSTLEN)
    2323/*                       1234567890123456 */
    2424#define NB_BCAST_NAME   "*               "
     
    2626#define NB_NULL_NAME    "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
    2727
    28 #define NBPORT_RESERVED IPPORT_RESERVED
    29 #define NBPORT_USERRESERVED IPPORT_USERRESERVED
     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
    3036
    3137/* address format for netbios */
     38#pragma pack(1)
    3239struct sockaddr_nb {
     40#ifdef TCPV40HDRS
    3341        short   snb_family;             /* protocol family */
     42#else
     43        u_char  snb_len;
     44        u_char  snb_family;             /* netbios protocol family */
     45#endif
    3446        short   snb_type;               /* unique/multicast */
    3547        char    snb_netid[NB_NETIDLEN]; /* netid */
    3648        char    snb_name[NB_NAMELEN];   /* name */
    3749};
     50#pragma pack()
    3851
    3952#endif /* !_NETNB_NB_H_ */
Note: See TracChangeset for help on using the changeset viewer.