Lines Matching refs:rx
252 unsigned long rx = 0, tx = 0;
253 if (readInterfaceCounters(argv[2], &rx, &tx)) {
259 asprintf(&msg, "%lu", rx);
270 unsigned long rx = 0, tx = 0;
271 if (readInterfaceCounters(argv[2], &rx, &tx)) {
282 if (argc != 4 || (argc == 4 && (strcmp(argv[3], "rx") && (strcmp(argv[3], "tx"))))) {
284 "Usage: interface getthrottle <interface> <rx|tx>", false);
291 if (!strcmp(argv[3], "rx")) {
938 int CommandListener::readInterfaceCounters(const char *iface, unsigned long *rx, unsigned long *tx) {
955 name, rx, &d, &d, &d, &d, &d, &d, &d, tx);
959 // when the rx count gets too big it changes from "name: 999" to "name:1000"
964 sscanf(rxString, "%20lu", rx);
974 *rx = 0;