(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:basedir) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {($ VSub_Number '$0')})]) left_token: <Left_Backtick '`'> spids: [34 38] ) } spids: [33] ) ] spids: [33] ) (C {(source)} {(${ VSub_Name basedir) (/functions.sh)}) (C {(root_check_run_with_sudo)} {(DQ ($ VSub_At '$@'))}) (C {(source)} {(${ VSub_Name basedir) (/parameters.sh)}) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$DEST_IP'))} {(Lit_Other ']')}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DEST_IP) op: Equal rhs: {(DQ (198.18.0.42))} spids: [79] ) ] spids: [79] ) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$DST_MAC'))} {(Lit_Other ']')}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DST_MAC) op: Equal rhs: {(DQ ('90:e2:ba:ff:ff:ff'))} spids: [96] ) ] spids: [96] ) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$CLONE_SKB'))} {(Lit_Other ']')}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:CLONE_SKB) op:Equal rhs:{(DQ (0))} spids:[113])] spids: [113] ) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$BURST'))} {(Lit_Other ']')}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:BURST) op:Equal rhs:{(32)} spids:[130])] spids: [130] ) ] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:DELAY) op:Equal rhs:{(DQ (0))} spids:[138])] spids: [138] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:COUNT) op:Equal rhs:{(DQ (0))} spids:[146])] spids: [146] ) (C {(pg_ctrl)} {(DQ (reset))}) (ForExpr init: (BinaryAssign op_id: Arith_Equal left: (LhsName name:thread) right: (ArithWord w:{(Lit_Digits 0)}) ) cond: (ArithBinary op_id: Arith_Less left: (ArithVarRef name:thread) right: (ArithWord w:{($ VSub_Name '$THREADS')}) ) update: (UnaryAssign op_id:Node_PostDPlus child:(LhsName name:thread)) body: (DoGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:dev) op: Equal rhs: {(${ VSub_Name DEV) (Lit_Other '@') (${ VSub_Name thread)} spids: [194] ) ] spids: [194] ) (C {(pg_thread)} {($ VSub_Name '$thread')} {(DQ (rem_device_all))}) (C {(pg_thread)} {($ VSub_Name '$thread')} {(DQ (add_device))} {($ VSub_Name '$dev')}) (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('flag QUEUE_MAP_CPU'))}) (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('count ') ($ VSub_Name '$COUNT'))}) (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('clone_skb ') ($ VSub_Name '$CLONE_SKB'))}) (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('pkt_size ') ($ VSub_Name '$PKT_SIZE'))}) (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('delay ') ($ VSub_Name '$DELAY'))}) (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('flag NO_TIMESTAMP'))}) (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('dst_mac ') ($ VSub_Name '$DST_MAC'))}) (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('dst ') ($ VSub_Name '$DEST_IP'))}) (C {(pg_set)} {($ VSub_Name '$dev')} { (DQ ('src_min 198.18.') (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithVarRef name:thread) right: (ArithWord w:{(Lit_Digits 1)}) ) spids: [328 333] ) (.1) ) } ) (C {(pg_set)} {($ VSub_Name '$dev')} { (DQ ('src_max 198.18.') (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithVarRef name:thread) right: (ArithWord w:{(Lit_Digits 1)}) ) spids: [344 349] ) (.1) ) } ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_ne left: {(${ VSub_Name BURST)} right: {(0)} ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('burst ') ($ VSub_Name '$BURST'))}) ] spids: [16777215 378] ) ] else_action: [(C {(info)} {(DQ ($ VSub_Name '$dev') (': Not using burst'))})] spids: [391 402] ) ] spids: [191 405] ) ) (FuncDef name: print_result body: (BraceGroup children: [ (ForExpr init: (BinaryAssign op_id: Arith_Equal left: (LhsName name:thread) right: (ArithWord w:{(Lit_Digits 0)}) ) cond: (ArithBinary op_id: Arith_Less left: (ArithVarRef name:thread) right: (ArithWord w:{($ VSub_Name '$THREADS')}) ) update: (UnaryAssign op_id:Node_PostDPlus child:(LhsName name:thread)) body: (DoGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:dev) op: Equal rhs: {(${ VSub_Name DEV) (Lit_Other '@') (${ VSub_Name thread)} spids: [450] ) ] spids: [450] ) (C {(echo)} {(DQ ('Device: ') ($ VSub_Name '$dev'))}) (Pipeline children: [ (C {(cat)} {(/proc/net/pktgen/) ($ VSub_Name '$dev')}) (C {(grep)} {(-A2)} {(DQ ('Result:'))}) ] negated: F ) ] spids: [447 484] ) ) ] spids: [417] ) spids: [411 416] ) (C {(trap)} {(true)} {(SIGINT)}) (SimpleCommand words: [{(echo)} {(DQ ('Running... ctrl^C to stop'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[504])] ) (C {(pg_ctrl)} {(DQ (start))}) (C {(print_result)}) ] )