• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/tcpdump-56/tcpdump/

Lines Matching defs:ipx

27     "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.42 2005-05-06 08:26:44 guy Exp $";
42 #include "ipx.h"
57 const struct ipxHdr *ipx = (const struct ipxHdr *)p;
62 TCHECK(ipx->srcSkt);
64 ipxaddr_string(EXTRACT_32BITS(ipx->srcNet), ipx->srcNode),
65 EXTRACT_16BITS(&ipx->srcSkt));
68 ipxaddr_string(EXTRACT_32BITS(ipx->dstNet), ipx->dstNode),
69 EXTRACT_16BITS(&ipx->dstSkt));
71 /* take length from ipx header */
72 TCHECK(ipx->length);
73 length = EXTRACT_16BITS(&ipx->length);
75 ipx_decode(ipx, (u_char *)ipx + ipxSize, length - ipxSize);
78 printf("[|ipx %d]", length);
93 ipx_decode(const struct ipxHdr *ipx, const u_char *datap, u_int length)
97 dstSkt = EXTRACT_16BITS(&ipx->dstSkt);
100 (void)printf("ipx-ncp %d", length);
109 (void)printf("ipx-netbios %d", length);
115 (void)printf("ipx-diags %d", length);
118 (void)printf("ipx-nwlink-dgm %d", length);
127 (void)printf("ipx-#%x %d", dstSkt, length);
133 ipx_sap_print(const u_short *ipx, u_int length)
137 TCHECK(ipx[0]);
138 command = EXTRACT_16BITS(ipx);
139 ipx++;
146 (void)printf("ipx-sap-req");
148 (void)printf("ipx-sap-nearest-req");
150 TCHECK(ipx[0]);
151 (void)printf(" %s", ipxsap_string(htons(EXTRACT_16BITS(&ipx[0]))));
157 (void)printf("ipx-sap-resp");
159 (void)printf("ipx-sap-nearest-resp");
162 TCHECK(ipx[0]);
163 (void)printf(" %s '", ipxsap_string(htons(EXTRACT_16BITS(&ipx[0]))));
164 if (fn_printzp((u_char *)&ipx[1], 48, snapend)) {
168 TCHECK2(ipx[25], 10);
170 ipxaddr_string(EXTRACT_32BITS(&ipx[25]), (u_char *)&ipx[27]));
171 ipx += 32;
176 (void)printf("ipx-sap-?%x", command);
181 printf("[|ipx %d]", length);
185 ipx_rip_print(const u_short *ipx, u_int length)
189 TCHECK(ipx[0]);
190 command = EXTRACT_16BITS(ipx);
191 ipx++;
196 (void)printf("ipx-rip-req");
198 TCHECK(ipx[3]);
199 (void)printf(" %08x/%d.%d", EXTRACT_32BITS(&ipx[0]),
200 EXTRACT_16BITS(&ipx[2]), EXTRACT_16BITS(&ipx[3]));
204 (void)printf("ipx-rip-resp");
206 TCHECK(ipx[3]);
207 (void)printf(" %08x/%d.%d", EXTRACT_32BITS(&ipx[0]),
208 EXTRACT_16BITS(&ipx[2]), EXTRACT_16BITS(&ipx[3]));
210 ipx += 4;
215 (void)printf("ipx-rip-?%x", command);
220 printf("[|ipx %d]", length);