Lines Matching refs:_PACK_STR

224     _PACK_STR = '!BBH'  variable in RouterLSA
225 _PACK_LEN = struct.calcsize(_PACK_STR) # 4bytes
228 _PACK_STR = '!4s4sBBH' variable in RouterLSA.Link
229 _PACK_LEN = struct.calcsize(_PACK_STR) # 12bytes
247 struct.unpack_from(cls._PACK_STR, six.binary_type(link))
256 struct.pack(self._PACK_STR, id_, data, self.type_, self.tos,
274 (flags, _, num) = struct.unpack_from(cls._PACK_STR,
287 struct.pack(self._PACK_STR, self.flags, 0, len(self.links)))
297 _PACK_STR = '!4s' variable in NetworkLSA
298 _PACK_LEN = struct.calcsize(_PACK_STR)
316 (mask,) = struct.unpack_from(cls._PACK_STR, six.binary_type(binmask))
322 (router,) = struct.unpack_from(cls._PACK_STR,
342 _PACK_STR = '!4sB3s' variable in SummaryLSA
343 _PACK_LEN = struct.calcsize(_PACK_STR)
362 cls._PACK_STR, six.binary_type(buf))
374 return bytearray(struct.pack(self._PACK_STR, mask, self.tos, metric))
385 _PACK_STR = '!4sB3s4sI' variable in ASExternalLSA.ExternalNetwork
386 _PACK_LEN = struct.calcsize(_PACK_STR)
404 tag) = struct.unpack_from(cls._PACK_STR, six.binary_type(ext_nw))
415 struct.pack(self._PACK_STR, mask, self.flags, metric,
706 _PACK_STR = '!4sHBBI4s4s' # + neighbors variable in OSPFHello
707 _PACK_LEN = struct.calcsize(_PACK_STR)
731 designated_router, backup_router) = struct.unpack_from(cls._PACK_STR,
756 struct.pack(self._PACK_STR,
773 _PACK_STR = '!HBBI' # + LSA_HEADERS variable in OSPFDBDesc
774 _PACK_LEN = struct.calcsize(_PACK_STR)
796 sequence_number) = struct.unpack_from(cls._PACK_STR, six.binary_type(buf))
820 struct.pack(self._PACK_STR, self.mtu, self.options, flags,
834 _PACK_STR = '!I4s4s' variable in OSPFLSReq.Request
835 _PACK_LEN = struct.calcsize(_PACK_STR)
850 (type_, id_, adv_router) = struct.unpack_from(cls._PACK_STR,
859 return struct.pack(self._PACK_STR, self.type_, id_, adv_router)
887 _PACK_STR = '!I' variable in OSPFLSUpd
888 _PACK_LEN = struct.calcsize(_PACK_STR)
903 (num,) = struct.unpack_from(cls._PACK_STR, six.binary_type(binnum))
916 head = bytearray(struct.pack(self._PACK_STR, len(self.lsas)))