Lines Matching defs:ipx
24 /* \summary: Novell IPX printer */
45 #define IPX_SKT_EIGRP 0x85be /* Cisco EIGRP over IPX */
47 /* IPX transport header */
69 * Print IPX datagram packets.
74 const struct ipxHdr *ipx = (const struct ipxHdr *)p;
77 ND_PRINT((ndo, "IPX "));
79 ND_TCHECK(ipx->srcSkt);
81 ipxaddr_string(EXTRACT_32BITS(ipx->srcNet), ipx->srcNode),
82 EXTRACT_16BITS(&ipx->srcSkt)));
85 ipxaddr_string(EXTRACT_32BITS(ipx->dstNet), ipx->dstNode),
86 EXTRACT_16BITS(&ipx->dstSkt)));
88 /* take length from ipx header */
89 ND_TCHECK(ipx->length);
90 length = EXTRACT_16BITS(&ipx->length);
92 ipx_decode(ndo, ipx, p + ipxSize, length - ipxSize);
95 ND_PRINT((ndo, "[|ipx %d]", length));
110 ipx_decode(netdissect_options *ndo, const struct ipxHdr *ipx, const u_char *datap, u_int length)
114 dstSkt = EXTRACT_16BITS(&ipx->dstSkt);
117 ND_PRINT((ndo, "ipx-ncp %d", length));
126 ND_PRINT((ndo, "ipx-netbios %d", length));
132 ND_PRINT((ndo, "ipx-diags %d", length));
135 ND_PRINT((ndo, "ipx-nwlink-dgm %d", length));
144 ND_PRINT((ndo, "ipx-#%x %d", dstSkt, length));
150 ipx_sap_print(netdissect_options *ndo, const u_short *ipx, u_int length)
154 ND_TCHECK(ipx[0]);
155 command = EXTRACT_16BITS(ipx);
156 ipx++;
163 ND_PRINT((ndo, "ipx-sap-req"));
165 ND_PRINT((ndo, "ipx-sap-nearest-req"));
167 ND_TCHECK(ipx[0]);
168 ND_PRINT((ndo, " %s", ipxsap_string(ndo, htons(EXTRACT_16BITS(&ipx[0])))));
174 ND_PRINT((ndo, "ipx-sap-resp"));
176 ND_PRINT((ndo, "ipx-sap-nearest-resp"));
179 ND_TCHECK(ipx[0]);
180 ND_PRINT((ndo, " %s '", ipxsap_string(ndo, htons(EXTRACT_16BITS(&ipx[0])))));
181 if (fn_printzp(ndo, (const u_char *)&ipx[1], 48, ndo->ndo_snapend)) {
185 ND_TCHECK2(ipx[25], 10);
187 ipxaddr_string(EXTRACT_32BITS(&ipx[25]), (const u_char *)&ipx[27])));
188 ipx += 32;
193 ND_PRINT((ndo, "ipx-sap-?%x", command));
198 ND_PRINT((ndo, "[|ipx %d]", length));
202 ipx_rip_print(netdissect_options *ndo, const u_short *ipx, u_int length)
206 ND_TCHECK(ipx[0]);
207 command = EXTRACT_16BITS(ipx);
208 ipx++;
213 ND_PRINT((ndo, "ipx-rip-req"));
215 ND_TCHECK(ipx[3]);
216 ND_PRINT((ndo, " %08x/%d.%d", EXTRACT_32BITS(&ipx[0]),
217 EXTRACT_16BITS(&ipx[2]), EXTRACT_16BITS(&ipx[3])));
221 ND_PRINT((ndo, "ipx-rip-resp"));
223 ND_TCHECK(ipx[3]);
224 ND_PRINT((ndo, " %08x/%d.%d", EXTRACT_32BITS(&ipx[0]),
225 EXTRACT_16BITS(&ipx[2]), EXTRACT_16BITS(&ipx[3])));
227 ipx += 4;
232 ND_PRINT((ndo, "ipx-rip-?%x", command));
237 ND_PRINT((ndo, "[|ipx %d]", length));