🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #15469

include's y struct's

#15469
From: Julio Baixauli
Date: Thu, 29 Jun 2000 00:00
33 lines
1408 bytes
	�Se puede definir un struct en un .h y usar ese tipo en un .c
(incluyendo el .h) ?

	Otra pregunta: �Hay alg�n error en la siguiente definici�n? :



struct my_libnet_ip6_hdr
{
	u_char    ip6_class:4,
                  ip6_ver:4;

        u_int     ip6_flow:24;		// 4 bits class, 20 bits flow label

	u_short   ip6_paylen; 		// length excluding this header
	u_char    ip6_nh; 			// next header, e.g. IPPROTO_TCP
        u_char    ip6_hl;			// hop-limit, effectively equivalent to ttl

        struct in6_addr ip6_src, ip6_dst;
};



	Muchas gracias

-- 
********************************************

	Julio Baixauli Garreta
	baixauli@mat.upc.es

********************************************
Technical Details
Message-ID: <395B6872.BB4DE159@mat.upc.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,ed6ce95082faaceb,start
X-Google-Attributes: gidf86c8,public
From: Julio Baixauli <baixauli@mat.upc.es>
Subject: include's y struct's
Date: 2000/06/29
Message-ID: <395B6872.BB4DE159@mat.upc.es>
X-Deja-AN: 640425311
Distribution: es
Content-Transfer-Encoding: 8bit
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: newsmngr@upc.es
X-Trace: defalla.upc.es 962290977 2474 147.83.39.211 (29 Jun 2000 15:02:57 GMT)
Organization: Universitat Politecnica de Catalunya
Mime-Version: 1.0
NNTP-Posting-Date: 29 Jun 2000 15:02:57 GMT
Newsgroups: es.comp.os.linux.programacion