+/* flags in inp_flags: */
+#define INP_RECVOPTS 0x01 /* receive incoming IP options */
+#define INP_RECVRETOPTS 0x02 /* receive IP options for reply */
+#define INP_RECVDSTADDR 0x04 /* receive IP dst address */
+#define INP_CONTROLOPTS (INP_RECVOPTS|INP_RECVRETOPTS|INP_RECVDSTADDR)
+
+#ifdef sotorawcb
+/*
+ * Common structure pcb for raw internet protocol access.
+ * Here are internet specific extensions to the raw control block,
+ * and space is allocated to the necessary sockaddrs.
+ */
+struct raw_inpcb {
+ struct rawcb rinp_rcb; /* common control block prefix */
+ struct mbuf *rinp_options; /* IP options */
+ int rinp_flags; /* flags, e.g. raw sockopts */
+#define RINPF_HDRINCL 0x1 /* user supplies entire IP header */
+ struct sockaddr_in rinp_faddr; /* foreign address */
+ struct sockaddr_in rinp_laddr; /* local address */
+ struct route rinp_route; /* placeholder for routing entry */
+};
+#endif
+