- union {
- struct ip _td_ip4;
-#define td_ip _td_ipx._td_ip4
-#if INET6
- struct ip6_hdr _td_ip6;
-#define td_ip6 _td_ipx._td_ip6
+ int td_family;
+ /*
+ * Co-existense of td_ti and td_ti6 below is ugly, but it is necessary
+ * to achieve backword compatibility to some extent.
+ */
+ struct tcpiphdr td_ti;
+ struct {
+#if !defined(KERNEL) && defined(INET6)
+ struct ip6_hdr ip6;
+#else
+ u_char ip6buf[40]; /* sizeof(struct ip6_hdr) */