예제 #1
0
 def unpack(what, instance, data):
     # XXX: FIXME: if instance is not ASN(0) we have two ASN - raise
     instance = ASN.unpack(data, ASN4)
     return instance
예제 #2
0
 def unpack_capability(instance, data, capability=None):  # pylint: disable=W0613
     # XXX: FIXME: if instance is not ASN(0) we have two ASN - raise
     instance = ASN.unpack(data, ASN4)
     return instance
예제 #3
0
	def unpack (cls,data,negotiated):
		if negotiated.asn4:
			return cls(ASN.unpack(data[:4]),IPv4.unpack(data[-4:]))
		return cls(ASN.unpack(data[:2]),IPv4.unpack(data[-4:]))
예제 #4
0
	def unpack (cls, data, negotiated):
		if negotiated.asn4:
			return cls(ASN.unpack(data[:4]),IPv4.unpack(data[-4:]))
		return cls(ASN.unpack(data[:2]),IPv4.unpack(data[-4:]))
예제 #5
0
파일: asn4.py 프로젝트: Akheon23/exabgp
	def unpack_capability (instance, data, capability=None):  # pylint: disable=W0613
		# XXX: FIXME: if instance is not ASN(0) we have two ASN - raise
		instance = ASN.unpack(data,ASN4)
		return instance
예제 #6
0
파일: asn4.py 프로젝트: asnd/exabgp
	def unpack (what,instance,data):
		# XXX: FIXME: if instance is not ASN(0) we have two ASN - raise
		instance = ASN.unpack(data,ASN4)
		return instance
예제 #7
0
파일: asn4.py 프로젝트: andychenzy/exabgp
 def unpack_capability(instance, data, _=None):
     # XXX: FIXME: if instance is not ASN(0) we have two ASN - raise
     instance = ASN.unpack(data, ASN4)
     return instance