Advertisement
Guest User

Untitled

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