(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: [28 32]
              )
            }
          spids: [27]
        )
      ]
      spids: [27]
    )
    (C {(source)} {(${ VSub_Name basedir) (/functions.sh)})
    (C {(root_check_run_with_sudo)} {(DQ ($ VSub_At '$@'))})
    (C {(source)} {(${ VSub_Name basedir) (/parameters.sh)})
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$DEST_IP'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (AndOr
              ops: [Op_DAmp Op_DPipe]
              children: [
                (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$IP6'))} {(Lit_Other ']')})
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:DEST_IP)
                      op: Equal
                      rhs: {(DQ (198.18.0.42))}
                      spids: [86]
                    )
                  ]
                  spids: [86]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:DEST_IP)
                      op: Equal
                      rhs: {(DQ ('FD00::1'))}
                      spids: [93]
                    )
                  ]
                  spids: [93]
                )
              ]
            )
          ]
          spids: [16777215 71]
        )
      ]
      spids: [16777215 98]
    )
    (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: [112]
            )
          ]
          spids: [112]
        )
      ]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (DBracket expr:(BoolUnary op_id:BoolUnary_n child:{(DQ ($ VSub_Name '$BURST'))}))
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(err)} {(1)} {(DQ ('Bursting not supported for this mode'))})]
          spids: [16777215 134]
        )
      ]
      spids: [16777215 145]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:DELAY) op:Equal rhs:{(DQ (0))} spids:[151])]
      spids: [151]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:COUNT) op:Equal rhs:{(DQ (10000000))} spids:[159])]
      spids: [159]
    )
    (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: [215]
                )
              ]
              spids: [215]
            )
            (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 ('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 '$IP6') (' ') ($ VSub_Name '$DEST_IP'))}
            )
            (C {(pg_set)} {($ VSub_Name '$dev')} {(DQ ('xmit_mode queue_xmit'))})
          ]
          spids: [204 343]
        )
    )
    (SimpleCommand
      words: [{(echo)} {(DQ ('Running... ctrl^C to stop'))}]
      redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[355])]
    )
    (C {(pg_ctrl)} {(DQ (start))})
    (SimpleCommand
      words: [{(echo)} {(DQ (Done))}]
      redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[370])]
    )
    (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: [403]
                )
              ]
              spids: [403]
            )
            (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: [400 436]
        )
    )
  ]
)