Deleted Added
full compact
ipx.h (11819) ipx.h (11947)
1/*
2 * Copyright (c) 1995, Mike Mitchell
3 * Copyright (c) 1984, 1985, 1986, 1987, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 142 unchanged lines hidden (view full) ---

151 ((x).x_host.s_host[1]==0) && ((x).x_host.s_host[2]==0))
152#define ipx_wildnet(x) (((x).x_net.s_net[0]==0xffff) && \
153 ((x).x_net.s_net[1]==0xffff))
154#define ipx_wildhost(x) (((x).x_host.s_host[0]==0xffff) && \
155 ((x).x_host.s_host[1]==0xffff) && ((x).x_host.s_host[2]==0xffff))
156
157#ifdef KERNEL
158
1/*
2 * Copyright (c) 1995, Mike Mitchell
3 * Copyright (c) 1984, 1985, 1986, 1987, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 142 unchanged lines hidden (view full) ---

151 ((x).x_host.s_host[1]==0) && ((x).x_host.s_host[2]==0))
152#define ipx_wildnet(x) (((x).x_net.s_net[0]==0xffff) && \
153 ((x).x_net.s_net[1]==0xffff))
154#define ipx_wildhost(x) (((x).x_host.s_host[0]==0xffff) && \
155 ((x).x_host.s_host[1]==0xffff) && ((x).x_host.s_host[2]==0xffff))
156
157#ifdef KERNEL
158
159#include <net/route.h>
160
159extern int ipxcksum;
160extern struct domain ipxdomain;
161extern struct sockaddr_ipx ipx_netmask;
162extern struct sockaddr_ipx ipx_hostmask;
163
164extern union ipx_host ipx_thishost;
165extern union ipx_net ipx_zeronet;
166extern union ipx_host ipx_zerohost;
167extern union ipx_net ipx_broadnet;
168extern union ipx_host ipx_broadhost;
169
170extern long ipx_pexseq;
171extern u_char ipxctlerrmap[];
172extern struct ipxpcb ipxrawpcb;
173
161extern int ipxcksum;
162extern struct domain ipxdomain;
163extern struct sockaddr_ipx ipx_netmask;
164extern struct sockaddr_ipx ipx_hostmask;
165
166extern union ipx_host ipx_thishost;
167extern union ipx_net ipx_zeronet;
168extern union ipx_host ipx_zerohost;
169extern union ipx_net ipx_broadnet;
170extern union ipx_host ipx_broadhost;
171
172extern long ipx_pexseq;
173extern u_char ipxctlerrmap[];
174extern struct ipxpcb ipxrawpcb;
175
176#include <sys/cdefs.h>
174
177
175u_short ipx_cksum();
176void ipx_input(), ipx_abort(), ipx_drop();
177int ipx_output(), ipx_ctloutput(), ipx_usrreq();
178int ipx_raw_usrreq(), ipx_control(), ipx_do_route();
179void ipx_init(), ipxintr(), ipx_ctlinput(), ipx_forward();
180void ipx_undo_route(), ipx_watch_output();
181int ipx_outputfl();
178__BEGIN_DECLS
179u_short ipx_cksum __P((struct mbuf *m, int len));
180void ipx_input __P((struct mbuf *m, struct ipxpcb *ipxp));
181void ipx_abort __P((struct ipxpcb *ipxp));
182void ipx_drop __P((struct ipxpcb *ipxp, int errno));
183int ipx_output __P((struct ipxpcb *ipxp, struct mbuf *m0));
184int ipx_ctloutput __P((int req, struct socket *so, int level, int name, struct mbuf **value));
185int ipx_usrreq __P((struct socket *so, int req, struct mbuf *m, struct mbuf *nam, struct mbuf *control));
186int ipx_raw_usrreq __P((struct socket *so, int req, struct mbuf *m, struct mbuf *nam, struct mbuf *control));
187int ipx_control __P((struct socket *so, int cmd, caddr_t data, struct ifnet *ifp));
188void ipx_init __P((void));
189void ipxintr __P((void));
190void ipx_ctlinput __P((int cmd, caddr_t arg));
191void ipx_forward __P((struct mbuf *m));
192void ipx_watch_output __P((struct mbuf *m, struct ifnet *ifp));
193int ipx_do_route __P((struct ipx_addr *src, struct route *ro));
194void ipx_undo_route __P((struct route *ro));
195int ipx_outputfl __P((struct mbuf *m0, struct route *ro, int flags));
196__END_DECLS
182
197
183int ipxip_route();
184#else
185
186#include <sys/cdefs.h>
187
188__BEGIN_DECLS
189extern struct ipx_addr ipx_addr __P((const char *));
190extern char *ipx_ntoa __P((struct ipx_addr));
198#else
199
200#include <sys/cdefs.h>
201
202__BEGIN_DECLS
203extern struct ipx_addr ipx_addr __P((const char *));
204extern char *ipx_ntoa __P((struct ipx_addr));
191extern char *_ns_spectHex __P((const char *));
192__END_DECLS
193
194#endif
195
196#endif
205__END_DECLS
206
207#endif
208
209#endif