Searched refs:code (Results 1 - 25 of 61) sorted by relevance

123

/trex/scripts/automation/trex_control_plane/common/
H A Dtrex_exceptions.py11 Every exception in this class has as error format according to JSON-RPC convention convention: code, message and data.
14 def __init__(self, code, message, remote_data = None):
15 self.code = code
18 self.args = (code, self.msg, remote_data)
32 All exceptions inherits from this class has an error code and a default message which describes the most common use case of the error.
37 code = -10 variable in class:TRexException
47 code = -11 variable in class:TRexError
52 code = -12 variable in class:TRexWarning
57 code variable in class:TRexRequestDenied
65 code = -13 variable in class:TRexInUseError
70 code = -14 variable in class:TRexRunFailedError
79 code = -15 variable in class:TRexIncompleteRunError
[all...]
/trex/scripts/automation/trex_control_plane/stf/trex_stf_lib/
H A Dtrex_exceptions.py11 Every exception in this class has as error format according to JSON-RPC convention convention: code, message and data.
14 def __init__(self, code, message, remote_data = None):
15 self.code = code
18 self.args = (code, self.msg, remote_data)
33 All exceptions inherits from this class has an error code and a default message which describes the most common use case of the error.
38 code = -10 variable in class:TRexException
48 code = -11 variable in class:TRexError
53 code = -12 variable in class:TRexWarning
58 code variable in class:TRexRequestDenied
66 code = -13 variable in class:TRexInUseError
71 code = -14 variable in class:TRexRunFailedError
80 code = -15 variable in class:TRexIncompleteRunError
[all...]
/trex/scripts/external_libs/requests/requests/
H A Dstatus_codes.py87 for code, titles in _codes.items():
89 setattr(codes, title, code)
91 setattr(codes, title.upper(), code)
/trex/linux_dpdk/
H A Dc_dumbpreproc.py36 code = node.read()
38 for (a, b) in c_preproc.trig_def: code = code.split(a).join(b)
39 code = c_preproc.re_nl.sub('', code)
40 code = c_preproc.re_cpp.sub(c_preproc.repl, code)
41 return [(m.group(2), m.group(3)) for m in re.finditer(re_inc, code)]
/trex/src/dpdk/drivers/net/cxgbe/base/
H A Dt4_chip_type.h11 * * Redistributions of source code must retain the above copyright
44 * We use the "version" (V) of the adpater to code the Chip Version above.
54 #define CHELSIO_CHIP_VERSION(code) (((code) >> 4) & 0xf)
55 #define CHELSIO_CHIP_RELEASE(code) ((code) & 0xf)
/trex/scripts/external_libs/scapy-2.3.1/python2/scapy/contrib/
H A Dvtp.py133 ByteEnumField("code", 1, _VTP_Types),
135 lambda pkt:pkt.code == 1),
137 lambda pkt:pkt.code == 2),
139 lambda pkt:pkt.code == 3),
143 lambda pkt:pkt.code == 1 or
144 pkt.code == 2),
147 lambda pkt:pkt.code == 1),
149 lambda pkt:pkt.code == 1),
151 lambda pkt:pkt.code == 1),
154 lambda pkt: pkt.code
[all...]
H A Digmpv3.py130 code = value
132 code = 255
140 code = 0x80 | exp | (value & 0x0F)
141 return code
H A Ddtp.py15 - TLV code derived from the CDP implementation of scapy. (Thanks to Nicolas Bareil and Arnaud Ebalard)
105 bind_layers(SNAP, DTP, code=0x2004, OUI=0xc)
/trex/scripts/external_libs/scapy-2.3.1/python3/scapy/contrib/
H A Dvtp.py133 ByteEnumField("code", 1, _VTP_Types),
135 lambda pkt:pkt.code == 1),
137 lambda pkt:pkt.code == 2),
139 lambda pkt:pkt.code == 3),
143 lambda pkt:pkt.code == 1 or
144 pkt.code == 2),
147 lambda pkt:pkt.code == 1),
149 lambda pkt:pkt.code == 1),
151 lambda pkt:pkt.code == 1),
154 lambda pkt: pkt.code
[all...]
H A Digmpv3.py130 code = value
132 code = 255
140 code = 0x80 | exp | (value & 0x0F)
141 return code
H A Ddtp.py15 - TLV code derived from the CDP implementation of scapy. (Thanks to Nicolas Bareil and Arnaud Ebalard)
105 bind_layers(SNAP, DTP, code=0x2004, OUI=0xc)
/trex/src/dpdk/lib/librte_ether/
H A Drte_flow_driver.h11 * * Redistributions of source code must retain the above copyright
66 * \code
132 * @param code
133 * Related error code (rte_errno).
142 * Error code.
146 int code,
158 rte_errno = code;
159 return code;
145 rte_flow_error_set(struct rte_flow_error *error, int code, enum rte_flow_error_type type, const void *cause, const char *message) argument
H A Drte_flow.c11 * * Redistributions of source code must retain the above copyright
48 int code; local
51 code = ENODEV;
58 code = ENOSYS;
61 rte_flow_error_set(error, code, RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
62 NULL, rte_strerror(code));
/trex/scripts/external_libs/scapy-2.3.1/python2/scapy/layers/
H A Dbluetooth.py56 ByteEnumField("code",8,{1:"rej",2:"conn_req",3:"conn_resp",
70 if self.code == 1:
72 if other.code in [2,4,6,8,10] and self.code == other.code+1:
73 if other.code == 8:
152 bind_layers( L2CAP_CmdHdr, L2CAP_CmdRej, code=1)
153 bind_layers( L2CAP_CmdHdr, L2CAP_ConnReq, code=2)
154 bind_layers( L2CAP_CmdHdr, L2CAP_ConnResp, code=3)
155 bind_layers( L2CAP_CmdHdr, L2CAP_ConfReq, code
[all...]
H A Dl2.py169 XShortEnumField("code", 0x000, ETHER_TYPES) ]
252 fields_desc = [ ByteEnumField("code", 4, {1:"REQUEST",2:"RESPONSE",3:"SUCCESS",4:"FAILURE"}),
255 ConditionalField(ByteEnumField("type",0, {1:"ID",4:"MD5"}), lambda pkt:pkt.code not in [EAP.SUCCESS, EAP.FAILURE])
267 if self.code == self.REQUEST:
269 elif self.code == self.RESPONSE:
270 if ( (other.code == self.REQUEST) and
273 elif other.code == self.RESPONSE:
379 bind_layers( SNAP, Dot1Q, code=33024)
380 bind_layers( SNAP, Ether, code=1)
381 bind_layers( SNAP, ARP, code
[all...]
/trex/scripts/external_libs/scapy-2.3.1/python3/scapy/layers/
H A Dbluetooth.py58 ByteEnumField("code",8,{1:"rej",2:"conn_req",3:"conn_resp",
73 if self.code == 1:
75 if other.code in [2,4,6,8,10] and self.code == other.code+1:
76 if other.code == 8:
155 bind_layers( L2CAP_CmdHdr, L2CAP_CmdRej, code=1)
156 bind_layers( L2CAP_CmdHdr, L2CAP_ConnReq, code=2)
157 bind_layers( L2CAP_CmdHdr, L2CAP_ConnResp, code=3)
158 bind_layers( L2CAP_CmdHdr, L2CAP_ConfReq, code
[all...]
H A Dl2.py169 XShortEnumField("code", 0x000, ETHER_TYPES) ]
253 fields_desc = [ ByteEnumField("code", 4, {1:"REQUEST",2:"RESPONSE",3:"SUCCESS",4:"FAILURE"}),
256 ConditionalField(ByteEnumField("type",0, {1:"ID",4:"MD5"}), lambda pkt:pkt.code not in [EAP.SUCCESS, EAP.FAILURE])
268 if self.code == self.REQUEST:
270 elif self.code == self.RESPONSE:
271 if ( (other.code == self.REQUEST) and
274 elif other.code == self.RESPONSE:
380 bind_layers( SNAP, Dot1Q, code=33024)
381 bind_layers( SNAP, Ether, code=1)
382 bind_layers( SNAP, ARP, code
[all...]
/trex/scripts/external_libs/termstyle/
H A Dtermstyle.py9 # * Redistributions of source code must retain the above copyright
50 wrap_single = lambda code: "%s%s%s" % (cls.prefix, code, cls.suffix)
52 return ''.join([wrap_single(code) for code in codes])
/trex/scripts/external_libs/scapy-2.3.1/python2/scapy/
H A Dautorun.py10 import code,sys namespace
24 class ScapyAutorunInterpreter(code.InteractiveInterpreter):
26 code.InteractiveInterpreter.__init__(self, *args, **kargs)
30 return code.InteractiveInterpreter.showsyntaxerror(self, *args, **kargs)
36 return code.InteractiveInterpreter.showtraceback(self, *args, **kargs)
H A Dmain.py181 import code,sys,cPickle,os,getopt,re namespace
353 # In the IPython cookbook, see 'Updating-code-for-use-with-IPython-0.11-and-later'
357 code.interact(banner = the_banner % (conf.version),
/trex/scripts/external_libs/scapy-2.3.1/python3/scapy/
H A Dautorun.py10 import code,sys namespace
24 class ScapyAutorunInterpreter(code.InteractiveInterpreter):
26 code.InteractiveInterpreter.__init__(self, *args, **kargs)
30 return code.InteractiveInterpreter.showsyntaxerror(self, *args, **kargs)
36 return code.InteractiveInterpreter.showtraceback(self, *args, **kargs)
/trex/doc/
H A Dwaf.css42 .monospaced, code, pre { selector
/trex/scripts/external_libs/jsonrpclib-pelix-0.2.5/jsonrpclib/
H A Djsonrpc.py179 * a (code, message) tuple
186 Application error: the error code is not in the pre-defined ones
188 AppError.args[0][0]: Error code
517 (code from xmlrpclib in Python 2.7)
784 def __init__(self, code=-32000, message='Server error', rpcid=None,
789 :param code: Fault code
795 self.faultCode = code
805 :returns: A {'code', 'message'} dictionary
807 return {'code'
[all...]
/trex/src/rpc-server/
H A Dtrex_rpc_jsonrpc_v2_parser.cpp85 response["error"]["code"] = JSONRPC_V2_ERR_INVALID_PARAMS;
91 response["error"]["code"] = JSONRPC_V2_ERR_EXECUTE_ERROR;
97 response["error"]["code"] = JSONRPC_V2_ERR_INTERNAL_ERROR;
119 JsonRpcError(const Json::Value &msg_id, int code, const std::string &msg, bool force = false) : TrexJsonRpcV2ParsedObject(msg_id, force), m_code(code), m_msg(msg) { argument
124 response["error"]["code"] = m_code;
/trex/doc/backends/deckjs/deck.js/themes/style/
H A Dneon.css4 abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, selector
76 pre, code, kbd, samp { selector
319 pre code {
323 code { selector

Completed in 26 milliseconds

123