[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | Alpha Developer Support |
Notice: | [email protected], 800-332-4786 |
Moderator: | HYDRA::SYSTEM |
|
Created: | Mon Jun 06 1994 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3722 |
Total number of notes: | 11359 |
3535.0. "Landmark Systems Corporation" by HYDRA::AXPDEVELOPER (Alpha Developer support) Thu Apr 24 1997 04:21
Company Name : Landmark Systems Corporation
Contact Name : Shyam Harohalli
Phone : (703) 902-8124
Fax :
Email : [email protected]
Date/Time in : 24-APR-1997 03:20:49
Entered by : Ian Chamberlin
SPE center : REO
Category : unix
OS Version : 3.2
System H/W :
Brief Description of Problem:
-----------------------------
From: SMTP%"[email protected]" 23-APR-1997 09:18:05.88
To: [email protected] ([email protected])
CC: [email protected]
Subj: /usr/inclue/netinet/tcp_var.h
Return-Path: [email protected]
Received: by vaxsim.mro.dec.com (UCX V4.1-12, OpenVMS V6.2 VAX);
Wed, 23 Apr 1997 09:18:02 -0400
Received: from fwout.landmark.com by mail13.digital.com (8.7.5/UNX 1.5/1.0/WV)
id JAA09807; Wed, 23 Apr 1997 09:07:18 -0400 (EDT)
Received: by fwout.landmark.com; id JAA04793; Wed, 23 Apr 1997 09:06:42 -0400 (EDT)
Received: from saturn.landmark.com(192.246.113.34) by fw.landmark.com via smap (3.2)
id xma004788; Wed, 23 Apr 97 09:06:40 -0400
Received: from shyamh.landmark.com (sharahal.landmark.com [172.22.2.19]) by Landmark.Com (Howdy Partner/nope) with SMTP id IAA11369; Wed, 23 Apr 1997 08:58:01 -0400 (EDT)
Message-Id: <[email protected]>
X-Sender: [email protected]
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 23 Apr 1997 09:09:35 -0400
To: [email protected] ([email protected])
From: Shyam Harohalli <[email protected]>
Subject: /usr/inclue/netinet/tcp_var.h
Cc: [email protected]
Hello,
I am trying to compile a file on Digital UNIX 3.2. This file includes the
header file - /usr/include/netinet/tcp_var.h. My program does not get
compiled, and gives an error message -
"/usr/include/netinet/tcp_var.h:110: field `t_template' has incomplete type"
I compared tcp_var.h on Digital UNIX with tcp_var.h on Solaris/HP-UX/AIX.
In all these platforms, 't_template' is a pointer to structure 'tcpiphdr',
whereas in Digital UNIX, t_template is structure itself. I then included a
local copy of tcp_var.h after modifying line 110 as follows:
107 #define TCPOOB_HAVEDATA 0x01
108 #define TCPOOB_HADDATA 0x02
109
110 struct tcpiphdr *t_template; /* skeletal packet for transmit
111 * (used to be mbuf)
This time compilation was successful. But I do not know yet, if this change
can cause any run-time errors.
Could you please verify if t_template is a pointer or a structure. If this
is a structure, then, the file tcp_var.h has to include the header
<netinet/tcpip.h>.
Thanks,
Shyam
Landmark Systems Corporation
(703) 902-8124
[email protected]
--
Shyam Harohalli
(703) 902 8124
[email protected]
T.R | Title | User | Personal Name | Date | Lines |
---|
3535.1 | We are different - its a structure not a pointer | RDGENG::CHAMBERLIN | Danger! Do not Reverse Polarity | Mon Apr 28 1997 11:56 | 18 |
| (Sent 24 April)
Shyam,
I dont know the reason for the difference between t_template on Digital
Unix (aka Digital OSF/1) and Solaris/HP-UX/AIX. I could guess its due to the
differnt origins - BSD vs System V, but that is only my guess.
The definition of t_template is correct as a structure for Digital Unix,
and redefining it to a pointer is likely to cause problems else where - and I
wouldn;t recommend it. I would suggest you leave t_template as a tcpiphdr
structure, and include <netinet/tcpip.h> in your source before including
<tcp_var.h>, to provide the structure definition.
regards
Ian Chamberlin,
Digital Equipment Co, Software Partner Engineering.
|