env.PkgDraw("MPEGDVBBundle/MPESection.hh"),
env.PkgDraw("MPEGDVBBundle/SNDUPacket.hh"),
env.PkgDraw("MPEGDVBBundle/TransportPacket.hh"),
+ env.PkgDraw("DefaultBundle/MPLSPacket.hh"),
])
SENFSCons.InstallIncludeFiles(env, includes)
fi
sed -i -e 's/rankdir=LR/rankdir=TB/' "$1"
"$topdir/doclib/dot-munge.pl" "$1"
-unflatten -l3 -c3 -f -o "$1".unflat "$1"
+unflatten -l2 -c2 -f -o "$1".unflat "$1"
mv "$1".unflat "$1"
case "$2" in
sys.stderr.write("Failed to aprse VECTOR: %s\n" % args)
return None
field = dict(FIELD_TYPES.get(args[-1].split(':')[-1], {}))
+ print args,repr(field);
field['name'] = args[0]
field['repeat'] = True
return field
packetOrder.append(name)
minsize = maxsize = 0
for field in packets[name]:
- if field.get('size', None) is not None:
- maxsize += field['size']
- elif field.get('minsize', None) is not None:
- maxsize += field['maxsize']
+ if maxsize is not None:
+ if field.get('repeat', False):
+ maxsize = None
+ elif field.get('size', None) is not None:
+ maxsize += field['size']
+ elif field.get('minsize', None) is not None:
+ maxsize += field['maxsize']
+ else:
+ maxsize = None
if not field.get('optional', False):
if field.get('size', None) is not None:
minsize += field['size']
elif field.get('minsize', None) is not None:
minsize += field['minsize']
+ print name,minsize,maxsize
if minsize is not None and maxsize is not None:
if minsize == maxsize:
FIELD_TYPES[name] = { 'size' : minsize }