diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-25 16:43:30 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-25 16:43:30 +0000 |
commit | 883ba097cc83637d1955ec909d71d0a4e1fa2b47 (patch) | |
tree | db20e46b454a9a1fcbc105f3f4b65c389de7502e | |
parent | 2007-03-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-883ba097cc83637d1955ec909d71d0a4e1fa2b47.tar.bz2 |
More partial updates from FreeBSD.
-rw-r--r-- | cpukit/libnetworking/netinet/in_pcb.h | 16 |
1 files 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 */ }; |