CS代考 // common externs

// common externs
extern void truncate(in bit<32> length);
extern void resubmit(in T x);
extern void recirculate(in T x);

Copyright By PowCoder代写 加微信 powcoder

enum CloneType { I2E, E2I }
extern void clone(in CloneType type,
in bit<32> session);

// v1model pipeline elements
parser Parser(
packet_in pkt,
out H hdr,
inout M meta,
inout standard_metadata_t std_meta
control VerifyChecksum(
inout H hdr,
inout M meta
control Ingress(
inout H hdr,
inout M meta,
inout standard_metadata_t std_meta
control Egress(
inout H hdr,
inout M meta,
inout standard_metadata_t std_meta
control ComputeChecksum(
inout H hdr,
inout M meta
control Deparser(
packet_out b, in H hdr

// v1model switch
package V1Switch(
Parser p,
VerifyChecksum vr,
Ingress ig,
Egress eg,
ComputeChecksum ck,
Deparser d

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com