From 883ba097cc83637d1955ec909d71d0a4e1fa2b47 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 25 Mar 2007 16:43:30 +0000 Subject: More partial updates from FreeBSD. --- cpukit/libnetworking/netinet/in_pcb.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/cpukit/libnetworking/netinet/in_pcb.h b/cpukit/libnetworking/netinet/in_pcb.h index 8011743319..f3a3cc178d 100644 --- a/cpukit/libnetworking/netinet/in_pcb.h +++ b/cpukit/libnetworking/netinet/in_pcb.h @@ -60,14 +60,22 @@ struct inpcb { u_short inp_lport; /* local port */ caddr_t inp_ppcb; /* pointer to per-protocol pcb */ struct socket *inp_socket; /* back pointer to socket */ - struct mbuf *inp_options; /* IP options */ struct route inp_route; /* placeholder for routing entry */ int inp_flags; /* generic IP/datagram flags */ - u_char inp_ip_tos; /* type of service proto */ + u_char inp_vflag; /* IP version flag (v4/v6) */ u_char inp_ip_ttl; /* time to live proto */ u_char inp_ip_p; /* protocol proto */ - u_char pad[1]; /* alignment */ - struct ip_moptions *inp_moptions; /* IP multicast options */ + u_char inp_ip_minttl; /* minimum TTL or drop */ + + /* protocol dependent part; options */ + struct { + u_char inp4_ip_tos; /* type of service proto */ + struct mbuf *inp4_options; /* IP options */ + struct ip_moptions *inp4_moptions; /* IP multicast options */ + } inp_depend4; +#define inp_ip_tos inp_depend4.inp4_ip_tos +#define inp_options inp_depend4.inp4_options +#define inp_moptions inp_depend4.inp4_moptions inp_gen_t inp_gencnt; /* generation count of this instance */ }; -- cgit v1.2.3