Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 11 item = std::find(arg.begin(), arg.end(), "-a");
- 10 if ( item != arg.end() && item != arg.end()-1 ) {
- 9 if ( *(item+1) != "srcmac" || *(item+1) != "dstmac" || *(item+1) != "srcip" || *(item+1) != "dstip" || *(item+1) != "srcport" || *(item+1) != "dstport" ) {
- 8 std::cerr << "Wrong parametr [-a [srcmac|dstmac|srcip|dstip|srcport|dstport] [mac|ip|port]]" << std::endl;
- 7 }
- 6 arg.erase(item);
- 5 arg.erase(item);
- 4 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement