+/*
+ * Process an IMP "error" message, passing this
+ * up to the higher level protocol.
+ */
+impnotify(what, cp, hp)
+ int what;
+ struct control_leader *cp;
+ struct host *hp;
+{
+ struct in_addr in;
+
+#ifdef notdef
+ in.s_net = cp->dl_network;
+#else
+ in.s_net = 10; /* XXX */
+#endif
+ in.s_host = cp->dl_host;
+ in.s_imp = cp->dl_imp;
+ if (cp->dl_link != IMPLINK_IP)
+ raw_ctlinput(what, (caddr_t)&in);
+ else
+ ip_ctlinput(what, (caddr_t)&in);
+ if (hp) {
+ hp->h_flags |= (1 << what);
+ hostfree(hp);
+ }
+}
+