PERFORCE change 122019 for review
Fredrik Lindberg
fli at FreeBSD.org
Wed Jun 20 10:28:19 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=122019
Change 122019 by fli at fli_genesis on 2007/06/20 10:27:30
- __packed instead of __attribute__((packed))
- Whitespace fixes.
- Add a neccessary struct forward declaration.
Affected files ...
.. //depot/projects/soc2007/fli-mdns_sd/mdnsd/stack_mdns.h#4 edit
Differences ...
==== //depot/projects/soc2007/fli-mdns_sd/mdnsd/stack_mdns.h#4 (text+ko) ====
@@ -86,11 +86,11 @@
unsigned int h_cd:1; /* Checking disabled, q/r=0 ignore on recv */
unsigned int h_rcode:4; /* Resp. code, q/r=0 ignore on recv */
#endif
- unsigned int h_qcount:16; /* number of question entries */
- unsigned int h_acount:16; /* number of answer entries */
+ unsigned int h_qcount:16; /* number of question entries */
+ unsigned int h_acount:16; /* number of answer entries */
unsigned int h_nscount:16; /* number of authority entries */
- unsigned int h_rcount:16; /* number of resource entries */
-} __attribute__((packed));
+ unsigned int h_rcount:16; /* number of resource entries */
+} __packed;
/*
* Question section "header", starts at the end
@@ -100,7 +100,7 @@
/* Qname ..//.. */
uint16_t qs_type;
uint16_t qs_class;
-} __attribute__((packed));
+} __packed;
/*
* Resource record "header", starts at the end of the
@@ -113,8 +113,9 @@
uint32_t rs_ttl;
uint16_t rs_rdlen;
/* Rdata ..//.. */
-} __attribute__((packed));
+} __packed;
+struct mdns_pkgchain;
struct mdns_packet * pkg_alloc(struct mdns_pkgchain *);
#endif /* _STACK_MDNS_H_ */
More information about the p4-projects
mailing list