+ case 'u': // UDP(-Lite) instead of TCP
+ if (optarg) {
+ mExtSettings->mProtocol = kProto_UDPLITE;
+ // Set partial checksum coverage:
+ // - 0 means entire datagram,
+ // - 1..7 is illegal and will be rounded up to 8;
+ // - 8 and greater mean genuine partial coverage.
+ mExtSettings->cscov = atoi(optarg);
+ } else
+ mExtSettings->mProtocol = kProto_UDP;