home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / tcpip / ibmpc / 4341 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.4 KB  |  39 lines

  1. Newsgroups: comp.protocols.tcp-ip.ibmpc
  2. Path: sparky!uunet!wupost!sdd.hp.com!zaphod.mps.ohio-state.edu!think.com!linus!linus.mitre.org!mwvm.mitre.org!M11156
  3. From: henri@mitre.org (Henri Bulterman)
  4. Subject: Re: wattcp building troubles...
  5. Message-ID: <1682BBBB7.M11156@mwvm.mitre.org>
  6. Sender: news@linus.mitre.org (News Service)
  7. Nntp-Posting-Host: mwvm.mitre.org
  8. Organization: The MITRE Corporation, McLean VA 22102
  9. Date: Tue, 21 Jul 1992 17:20:55 GMT
  10. Lines: 27
  11.  
  12. > [Various netters have told tales of trouble in converting WATTCP from
  13. >  Borland C to other C compilers...]
  14.  
  15. Just last week I went through the exercise of porting some WATTCP source
  16. files to Microsoft C7.  (There is a complete MSC port in one of the
  17. directories on the Waterloo machine, but it is slightly out of date.)
  18.  
  19. There's one section in WATTCP.H that you have to be sure to change.
  20. This code occurs in the definition of the "Internet Header" structure:
  21.  
  22.    Borland:   unsigned hdrlen :4;
  23.               unsigned ver    :4;
  24.               byte     tos;
  25.  
  26.    MSC:       unsigned hdrlen :4,    /* Note commas */
  27.                        ver    :4,
  28.                        tos    :8;
  29.  
  30. Until I made this change, Erick's excellent SMTPSERV program was
  31. dead in the water.  I figured this out by comparing the new WATTCP.H
  32. to the older version in the UofArizona MSC port.
  33.  
  34. Hope this information proves useful to somebody!
  35.  
  36. Henri Bulterman
  37. The MITRE Corporation
  38. henri@mitre.org
  39.