summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_var.h
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1997-05-10 09:58:58 +0000
committerjhay <jhay@FreeBSD.org>1997-05-10 09:58:58 +0000
commit0993d64164c5645de9b918e293cd3ae73cc6eeab (patch)
tree1020b5e960a3798c25dbbee04af310936411983a /sys/netipx/ipx_var.h
parentd166039f66bb01a24268ecef1ad2038d00c72a4d (diff)
downloadFreeBSD-src-0993d64164c5645de9b918e293cd3ae73cc6eeab.zip
FreeBSD-src-0993d64164c5645de9b918e293cd3ae73cc6eeab.tar.gz
Mega IPX commit.
Use the MAC address of an interface for the host part of an IPX address and not the MAC address of the first interface for every IPX address. This is more inline with the way others like Novell do it. Mostly Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su> Take out the error messages (the ip icmp equivalent) with #ifdef IPXERRORMSGS. This is bogus and as far as I could figure out IPX don't have anything like it. This is a leftover from its XNS heritage. If nobody complains, I will take it out completely in a few weeks. Add some more ipxstat statistics counters. Make ipxprintfs a sysctl variable and off by default. Add IPX Netbios "routing" support. This is off by default and can be switched on with a sysctl knob. General code cleanup to at least use the same style throughout the IPX code, but also be more style(9) conformant. Also make a lot of functions static. If I don't get any complaints I'll bring all of this over to the 2.2 tree in a few weeks.
Diffstat (limited to 'sys/netipx/ipx_var.h')
-rw-r--r--sys/netipx/ipx_var.h52
1 files changed, 44 insertions, 8 deletions
diff --git a/sys/netipx/ipx_var.h b/sys/netipx/ipx_var.h
index 2e730be..2c7240c 100644
--- a/sys/netipx/ipx_var.h
+++ b/sys/netipx/ipx_var.h
@@ -33,7 +33,7 @@
*
* @(#)ipx_var.h
*
- * $Id$
+ * $Id: ipx_var.h,v 1.5 1997/02/22 09:41:58 peter Exp $
*/
#ifndef _NETIPX_IPX_VAR_H_
@@ -43,15 +43,51 @@
* IPX Kernel Structures and Variables
*/
struct ipxstat {
- int ipxs_badsum; /* checksum bad */
- int ipxs_tooshort; /* packet too short */
- int ipxs_toosmall; /* not enough data */
- int ipxs_badhlen; /* ip header length < data size */
- int ipxs_badlen; /* ip length < ip header length */
+ u_long ipxs_total; /* total packets received */
+ u_long ipxs_badsum; /* checksum bad */
+ u_long ipxs_tooshort; /* packet too short */
+ u_long ipxs_toosmall; /* not enough data */
+ u_long ipxs_forward; /* packets forwarded */
+ u_long ipxs_cantforward; /* packets rcvd for unreachable dest */
+ u_long ipxs_delivered; /* datagrams delivered to upper level*/
+ u_long ipxs_localout; /* total ipx packets generated here */
+ u_long ipxs_odropped; /* lost packets due to nobufs, etc. */
+ u_long ipxs_noroute; /* packets discarded due to no route */
+ u_long ipxs_mtutoosmall; /* the interface mtu is too small */
};
#ifdef KERNEL
+extern int ipxcksum;
+extern long ipx_pexseq;
extern struct ipxstat ipxstat;
-#endif
+extern struct ipxpcb ipxrawpcb;
+extern struct pr_usrreqs ipx_usrreqs;
+extern struct pr_usrreqs ripx_usrreqs;
+extern struct sockaddr_ipx ipx_netmask;
+extern struct sockaddr_ipx ipx_hostmask;
-#endif
+extern union ipx_net ipx_zeronet;
+extern union ipx_host ipx_zerohost;
+extern union ipx_net ipx_broadnet;
+extern union ipx_host ipx_broadhost;
+
+void ipx_abort __P((struct ipxpcb *ipxp));
+u_short ipx_cksum __P((struct mbuf *m, int len));
+int ipx_control __P((struct socket *so, int cmd, caddr_t data,
+ struct ifnet *ifp, struct proc *p));
+void ipx_ctlinput __P((int cmd, struct sockaddr *arg_as_sa, void *dummy));
+int ipx_ctloutput __P((int req, struct socket *so, int level, int name,
+ struct mbuf **value, struct proc *p));
+void ipx_drop __P((struct ipxpcb *ipxp, int errno));
+void ipx_init __P((void));
+void ipx_input __P((struct mbuf *m, struct ipxpcb *ipxp));
+void ipxintr __P((void));
+int ipx_outputfl __P((struct mbuf *m0, struct route *ro, int flags));
+int ipx_output_type20(struct mbuf *);
+int ipx_peeraddr __P((struct socket *so, struct mbuf *nam));
+int ipx_sockaddr __P((struct socket *so, struct mbuf *nam));
+void ipx_watch_output __P((struct mbuf *m, struct ifnet *ifp));
+
+#endif /* KERNEL */
+
+#endif /* _NETIPX_IPX_VAR_H_ */
OpenPOWER on IntegriCloud