Lines Matching defs:ipx

83 #include <netipx/ipx.h>
91 &ipxcksum, 0, "Compute ipx checksum");
99 &ipxforwarding, 0, "Enable ipx forwarding");
103 &ipxnetbios, 0, "Propagate netbios over ipx");
129 .nh_name = "ipx",
170 struct ipx *ipx;
186 if ((m->m_flags & M_EXT || m->m_len < sizeof(struct ipx)) &&
187 (m = m_pullup(m, sizeof(struct ipx))) == NULL) {
206 ipx = mtod(m, struct ipx *);
207 len = ntohs(ipx->ipx_len);
226 if (ipxcksum && ipx->ipx_sum != 0xffff) {
227 if (ipx->ipx_sum != ipx_cksum(m, len)) {
238 if (ipx->ipx_pt == IPXPROTO_NETBIOS) {
251 if (ipx_hosteqnh(ipx_broadhost,ipx->ipx_dna.x_host)) {
252 if ((!ipx_neteq(ipx->ipx_dna, ipx->ipx_sna)) &&
253 (!ipx_neteqnn(ipx->ipx_dna.x_net, ipx_broadnet)) &&
254 (!ipx_neteqnn(ipx->ipx_sna.x_net, ipx_zeronet)) &&
255 (!ipx_neteqnn(ipx->ipx_dna.x_net, ipx_zeronet)) ) {
264 ipx->ipx_dna)) {
281 if (ipx->ipx_tc < IPX_MAXHOPS) {
292 if (ipx_hosteq(ipx->ipx_dna, ia->ia_addr.sipx_addr) &&
293 (ipx_neteq(ipx->ipx_dna, ia->ia_addr.sipx_addr) ||
294 ipx_neteqnn(ipx->ipx_dna.x_net, ipx_zeronet)))
308 ipxp = ipx_pcblookup(&ipx->ipx_sna, ipx->ipx_dna.x_port, IPX_WILDCARD);
315 switch (ipx->ipx_pt) {
351 struct ipx *ipx = mtod(m, struct ipx *);
364 ipx->ipx_tc++;
365 if (ipx->ipx_tc > IPX_MAXHOPS) {
371 if ((ok_there = ipx_do_route(&ipx->ipx_dna,&ipx_droute)) == 0) {
383 if (ipx->ipx_dna.x_host.c_host[0] & 0x1) {
388 ia = ipx_iaonnetof(&ipx->ipx_dna);
391 agedelta += IPX_MAXHOPS - ipx->ipx_tc;
392 ipx->ipx_tc = IPX_MAXHOPS;
395 if ((ok_back = ipx_do_route(&ipx->ipx_sna,&ipx_sroute)) == 0) {
419 ipx->ipx_sum = 0xffff;
428 ipx_printhost(&ipx->ipx_sna);
430 ipx_printhost(&ipx->ipx_dna);
431 printf(" hops %d\n", ipx->ipx_tc);