Lines Matching +full:se +full:- +full:neg

31  * with the guts of RX, per se.
42 #include "netdissect-stdinc.h"
153 { RX_CLIENT_INITIATED, 0, "client-init" },
154 { RX_REQUEST_ACK, 0, "req-ack" },
155 { RX_LAST_PACKET, 0, "last-pckt" },
156 { RX_MORE_PACKETS, 0, "more-pckts" },
157 { RX_FREE_PACKET, 0, "free-pckt" },
158 { RX_SLOW_START_OK, RX_PACKET_TYPE_ACK, "slow-start" },
163 { 130, "fetch-data" },
164 { 131, "fetch-acl" },
165 { 132, "fetch-status" },
166 { 133, "store-data" },
167 { 134, "store-acl" },
168 { 135, "store-status" },
169 { 136, "remove-file" },
170 { 137, "create-file" },
179 { 146, "get-stats" },
180 { 147, "give-cbs" },
181 { 148, "get-vlinfo" },
182 { 149, "get-vlstats" },
183 { 150, "set-vlstats" },
184 { 151, "get-rootvl" },
185 { 152, "check-token" },
186 { 153, "get-time" },
187 { 154, "nget-vlinfo" },
188 { 155, "bulk-stat" },
192 { 159, "xstat-ver" },
193 { 160, "get-xstat" },
194 { 161, "dfs-lookup" },
195 { 162, "dfs-flushcps" },
196 { 163, "dfs-symlink" },
198 { 65536, "inline-bulk-status" },
199 { 65537, "fetch-data-64" },
200 { 65538, "store-data-64" },
201 { 65539, "give-up-all-cbs" },
202 { 65540, "get-caps" },
203 { 65541, "cb-rx-conn-addr" },
230 { 500, "new-user" },
231 { 501, "where-is-it" },
232 { 502, "dump-entry" },
233 { 503, "add-to-group" },
234 { 504, "name-to-id" },
235 { 505, "id-to-name" },
237 { 507, "remove-from-group" },
238 { 508, "get-cps" },
239 { 509, "new-entry" },
240 { 510, "list-max" },
241 { 511, "set-max" },
242 { 512, "list-entry" },
243 { 513, "change-entry" },
244 { 514, "list-elements" },
245 { 515, "same-mbr-of" },
246 { 516, "set-fld-sentry" },
247 { 517, "list-owned" },
248 { 518, "get-cps2" },
249 { 519, "get-host-cps" },
250 { 520, "update-entry" },
251 { 521, "list-entries" },
252 { 530, "list-super-groups" },
257 { 501, "create-entry" },
258 { 502, "delete-entry" },
259 { 503, "get-entry-by-id" },
260 { 504, "get-entry-by-name" },
261 { 505, "get-new-volume-id" },
262 { 506, "replace-entry" },
263 { 507, "update-entry" },
266 { 510, "list-entry" },
267 { 511, "list-attrib" },
268 { 512, "linked-list" },
269 { 513, "get-stats" },
271 { 515, "get-addrs" },
272 { 516, "change-addr" },
273 { 517, "create-entry-n" },
274 { 518, "get-entry-by-id-n" },
275 { 519, "get-entry-by-name-n" },
276 { 520, "replace-entry-n" },
277 { 521, "list-entry-n" },
278 { 522, "list-attrib-n" },
279 { 523, "linked-list-n" },
280 { 524, "update-entry-by-name" },
281 { 525, "create-entry-u" },
282 { 526, "get-entry-by-id-u" },
283 { 527, "get-entry-by-name-u" },
284 { 528, "replace-entry-u" },
285 { 529, "list-entry-u" },
286 { 530, "list-attrib-u" },
287 { 531, "linked-list-u" },
289 { 533, "get-addrs-u" },
290 { 534, "list-attrib-n2" },
295 { 1, "auth-old" },
297 { 22, "authenticate-v2" },
298 { 2, "change-pw" },
299 { 3, "get-ticket-old" },
300 { 23, "get-ticket" },
301 { 4, "set-pw" },
302 { 5, "set-fields" },
303 { 6, "create-user" },
304 { 7, "delete-user" },
305 { 8, "get-entry" },
306 { 9, "list-entry" },
307 { 10, "get-stats" },
309 { 12, "get-pw" },
310 { 13, "get-random-key" },
312 { 15, "lock-status" },
317 { 100, "create-volume" },
318 { 101, "delete-volume" },
321 { 104, "end-trans" },
323 { 106, "set-flags" },
324 { 107, "get-flags" },
325 { 108, "trans-create" },
327 { 110, "get-nth-volume" },
328 { 111, "set-forwarding" },
329 { 112, "get-name" },
330 { 113, "get-status" },
331 { 114, "sig-restore" },
332 { 115, "list-partitions" },
333 { 116, "list-volumes" },
334 { 117, "set-id-types" },
336 { 119, "partition-info" },
338 { 121, "list-one-volume" },
340 { 123, "set-date" },
341 { 124, "x-list-volumes" },
342 { 125, "x-list-one-volume" },
343 { 126, "set-info" },
344 { 127, "x-list-partitions" },
345 { 128, "forward-multiple" },
346 { 65536, "convert-ro" },
347 { 65537, "get-size" },
348 { 65538, "dump-v2" },
353 { 80, "create-bnode" },
354 { 81, "delete-bnode" },
355 { 82, "set-status" },
356 { 83, "get-status" },
357 { 84, "enumerate-instance" },
358 { 85, "get-instance-info" },
359 { 86, "get-instance-parm" },
360 { 87, "add-superuser" },
361 { 88, "delete-superuser" },
362 { 89, "list-superusers" },
363 { 90, "list-keys" },
364 { 91, "add-key" },
365 { 92, "delete-key" },
366 { 93, "set-cell-name" },
367 { 94, "get-cell-name" },
368 { 95, "get-cell-host" },
369 { 96, "add-cell-host" },
370 { 97, "delete-cell-host" },
371 { 98, "set-t-status" },
372 { 99, "shutdown-all" },
373 { 100, "restart-all" },
374 { 101, "startup-all" },
375 { 102, "set-noauth-flag" },
376 { 103, "re-bozo" },
378 { 105, "start-bozo-install" },
380 { 107, "get-dates" },
383 { 110, "set-restart-time" },
384 { 111, "get-restart-time" },
385 { 112, "start-bozo-log" },
386 { 113, "wait-all" },
387 { 114, "get-instance-strings" },
388 { 115, "get-restricted" },
389 { 116, "set-restricted" },
394 { 10000, "vote-beacon" },
395 { 10001, "vote-debug-old" },
396 { 10002, "vote-sdebug-old" },
397 { 10003, "vote-getsyncsite" },
398 { 10004, "vote-debug" },
399 { 10005, "vote-sdebug" },
400 { 10006, "vote-xdebug" },
401 { 10007, "vote-xsdebug" },
402 { 20000, "disk-begin" },
403 { 20001, "disk-commit" },
404 { 20002, "disk-lock" },
405 { 20003, "disk-write" },
406 { 20004, "disk-getversion" },
407 { 20005, "disk-getfile" },
408 { 20006, "disk-sendfile" },
409 { 20007, "disk-abort" },
410 { 20008, "disk-releaselocks" },
411 { 20009, "disk-truncate" },
412 { 20010, "disk-probe" },
413 { 20011, "disk-writev" },
414 { 20012, "disk-interfaceaddr" },
415 { 20013, "disk-setversion" },
438 static const char *voltype[] = { "read-write", "read-only", "backup" };
453 { 0xffffff9c, "restarting fileserver" }, /* -100, sic! */
521 * Handle the rx-level packet. See if we know what port it's going to so
535 ndo->ndo_protocol = "rx"; in rx_print()
543 type = GET_U_1(rxh->type); in rx_print()
546 flags = GET_U_1(rxh->flags); in rx_print()
547 if (ndo->ndo_vflag) { in rx_print()
550 if (ndo->ndo_vflag > 1) in rx_print()
552 GET_BE_U_4(rxh->cid), in rx_print()
553 GET_BE_U_4(rxh->callNumber)); in rx_print()
556 GET_BE_U_4(rxh->seq), in rx_print()
557 GET_BE_U_4(rxh->serial)); in rx_print()
559 if (ndo->ndo_vflag > 2) in rx_print()
561 GET_U_1(rxh->securityIndex), in rx_print()
562 GET_BE_U_2(rxh->serviceId)); in rx_print()
564 if (ndo->ndo_vflag > 1) in rx_print()
585 * do not have the client-init flag set, so we check for that in rx_print()
590 GET_BE_U_4(rxh->seq) == 1 && in rx_print()
627 * If it's a reply (client-init is _not_ set, but seq is one) in rx_print()
634 GET_BE_U_4(rxh->seq) == 1) || in rx_print()
668 * function (there isn't any service-specific information in the in rx_print()
680 * Insert an entry into the cache. Taken from print-nfs.c
698 rxent->callnum = GET_BE_U_4(rxh->callNumber); in rx_cache_insert()
699 rxent->client = GET_IPV4_TO_NETWORK_ORDER(ip->ip_src); in rx_cache_insert()
700 rxent->server = GET_IPV4_TO_NETWORK_ORDER(ip->ip_dst); in rx_cache_insert()
701 rxent->dport = dport; in rx_cache_insert()
702 rxent->serviceId = GET_BE_U_2(rxh->serviceId); in rx_cache_insert()
703 rxent->opcode = GET_BE_U_4(bp + sizeof(struct rx_header)); in rx_cache_insert()
707 * Lookup an entry in the cache. Also taken from print-nfs.c
722 clip = GET_IPV4_TO_NETWORK_ORDER(ip->ip_dst); in rx_cache_find()
723 sip = GET_IPV4_TO_NETWORK_ORDER(ip->ip_src); in rx_cache_find()
730 if (rxent->callnum == GET_BE_U_4(rxh->callNumber) && in rx_cache_find()
731 rxent->client == clip && in rx_cache_find()
732 rxent->server == sip && in rx_cache_find()
733 rxent->serviceId == GET_BE_U_2(rxh->serviceId) && in rx_cache_find()
734 rxent->dport == sport) { in rx_cache_find()
739 *opcode = rxent->opcode; in rx_cache_find()
771 if (nd_printn(ndo, bp, _i, ndo->ndo_snapend)) \
774 bp += ((_i + sizeof(uint32_t) - 1) / sizeof(uint32_t)) * sizeof(uint32_t); \
800 "%Y-%m-%d %H:%M:%S", localtime(&_t))); \
1010 if (i != j - 1) in fs_print()
1071 type = GET_U_1(rxh->type); in fs_reply_print()
1148 int pos, neg, acl; in acl_print() local
1152 if (sscanf((char *) s, "%d %d\n%n", &pos, &neg, &n) != 2) in acl_print()
1187 for (i = 0; i < neg; i++) { in acl_print()
1191 ND_PRINT(" -{"); in acl_print()
1242 if (i != j - 1) in cb_print()
1304 type = GET_U_1(rxh->type); in cb_reply_print()
1408 * Who designed this chicken-shit protocol? in prot_print()
1410 * Each character is stored as a 32-bit in prot_print()
1503 type = GET_U_1(rxh->type); in prot_reply_print()
1531 * Who designed this chicken-shit protocol? in prot_reply_print()
1533 * Each character is stored as a 32-bit in prot_reply_print()
1703 type = GET_U_1(rxh->type); in vldb_reply_print()
1896 case 22: /* Authenticate-V2 */ in kauth_print()
1908 case 3: /* GetTicket-old */ in kauth_print()
1976 type = GET_U_1(rxh->type); in kauth_reply_print()
2085 case 110: /* Get n-th volume */ in vol_print()
2168 if (i != j - 1) in vol_print()
2215 type = GET_U_1(rxh->type); in vol_reply_print()
2244 case 110: /* Get n-th volume */ in vol_reply_print()
2302 if (i != j - 1) in vol_reply_print()
2439 type = GET_U_1(rxh->type); in bos_reply_print()
2490 * the line below will not over-read. in ubik_print()
2608 type = GET_U_1(rxh->type); in ubik_reply_print()
2678 if (ndo->ndo_vflag > 2) in rx_ack_print()
2680 GET_BE_U_2(rxa->bufferSpace), in rx_ack_print()
2681 GET_BE_U_2(rxa->maxSkew)); in rx_ack_print()
2683 firstPacket = GET_BE_U_4(rxa->firstPacket); in rx_ack_print()
2685 firstPacket, GET_BE_U_4(rxa->serial), in rx_ack_print()
2686 tok2str(rx_ack_reasons, "#%u", GET_U_1(rxa->reason))); in rx_ack_print()
2696 * padding, sizeof(struct rx_ackPacket) - RX_MAXACKS won't actually in rx_ack_print()
2700 * of AFS - the start of the extra fields are at in rx_ack_print()
2701 * sizeof(struct rx_ackPacket) - RX_MAXACKS + nAcks, which _isn't_ in rx_ack_print()
2703 * using bp, but instead use rxa->acks[]. But nAcks gets added in rx_ack_print()
2707 nAcks = GET_U_1(rxa->nAcks); in rx_ack_print()
2717 for (i = 0, start = last = -2; i < nAcks; i++) in rx_ack_print()
2727 if (last == -2) { in rx_ack_print()
2741 else if (last != i - 1) { in rx_ack_print()
2761 * from the first by a dash (-). Since we in rx_ack_print()
2764 * do this if there will be a single-length in rx_ack_print()
2767 } else if (last == i - 1 && start != last) in rx_ack_print()
2768 ND_PRINT("-%u", firstPacket + i - 1); in rx_ack_print()
2781 if (last == i - 1 && start != last) in rx_ack_print()
2782 ND_PRINT("-%u", firstPacket + i - 1); in rx_ack_print()
2788 for (i = 0, start = last = -2; i < nAcks; i++) in rx_ack_print()
2790 if (last == -2) { in rx_ack_print()
2793 } else if (last != i - 1) { in rx_ack_print()
2798 } else if (last == i - 1 && start != last) in rx_ack_print()
2799 ND_PRINT("-%u", firstPacket + i - 1); in rx_ack_print()
2801 if (last == i - 1 && start != last) in rx_ack_print()
2802 ND_PRINT("-%u", firstPacket + i - 1); in rx_ack_print()
2815 #define TRUNCRET(n) if (ndo->ndo_snapend - bp + 1 <= n) return; in rx_ack_print()
2817 if (ndo->ndo_vflag > 1) { in rx_ack_print()