예제 #1
0
        public OfpTableStats(Stream stream)
        {
            BeBinaryReader br = new BeBinaryReader(stream, Encoding.ASCII, true);

            br.Parse(out TableId);
            br.ReadBytes(3); //PAD 3
            br.Parse(out Name, OFP_MAX_TABLE_NAME_LEN);
            Wildcards = new OfpWildcards(stream);
            br.Parse(out MaxEntries);
            br.Parse(out ActiveCount);
            br.Parse(out LookupCount);
            br.Parse(out MatchedCount);
        }
예제 #2
0
 public static OfpWildcards Parse(this BeBinaryReader br, out OfpWildcards b)
 {
     b = new OfpWildcards(br.ReadUInt32());
     return(b);
 }
예제 #3
0
 /// <summary>
 /// OfpWildcards as uint
 /// </summary>
 /// <param name="wildcards"></param>
 public void Write(OfpWildcards wildcards)
 {
     bw.Write(wildcards.Value);
 }