Lines Matching full:raw
11 raw(BGPNLRI_IPv4()) == b'\x00'
14 raw(BGPNLRI_IPv4(prefix = '255.255.255.255/32')) == b' \xff\xff\xff\xff'
17 raw(BGPNLRI_IPv4(prefix = '0.0.0.0/0')) == b'\x00'
20 raw(BGPNLRI_IPv4(prefix = '192.0.2.0/24')) == b'\x18\xc0\x00\x02'
35 raw(BGPNLRI_IPv6()) == b'\x00'
38 raw(BGPNLRI_IPv6(prefix = '::/0')) == b'\x00'
41 raw(BGPNLRI_IPv6(prefix = '2001:db8::/32')) == b' \x01\r\xb8'
57 assert(raw(m) == b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x13\x04')
61 raw(BGP(type = 0)) == b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x13\x0…
64 raw(BGP(type = 1)) == b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x13\x0…
67 raw(BGP(type = 2)) == b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x13\x0…
70 raw(BGP(type = 3)) == b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x13\x0…
73 raw(BGP(type = 4)) == b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x13\x0…
76 raw(BGP(type = 5)) == b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x13\x0…
92 raw(BGPKeepAlive())
93 raw(BGPKeepAlive()) == b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x13\x…
97 m=IP(src="12.0.0.1",dst="12.0.0.2")/TCP(dport=54321)/BGP(raw(o)*2)
106 raw(BGPCapability())
107 raw(BGPCapability()) == b'\x00\x00'
111 assert(raw(c) == b'F\x00')
138 raw(BGPCapMultiprotocol()) == b'\x01\x04\x00\x00\x00\x00'
141 raw(BGPCapMultiprotocol(afi = 1, safi = 1)) == b'\x01\x04\x00\x01\x00\x01'
144 raw(BGPCapMultiprotocol(afi = 2, safi = 1)) == b'\x01\x04\x00\x02\x00\x01'
158 raw(BGPCapORFBlock()) == b'\x00\x00\x00\x00\x00'
161 raw(BGPCapORFBlock(afi = 1, safi = 1)) == b'\x00\x01\x00\x01\x00'
164 raw(BGPCapORFBlock(afi = 2, safi = 1)) == b'\x00\x02\x00\x01\x00'
179 raw(BGPCapORFBlock.ORFTuple()) == b'\x00\x00'
182 raw(BGPCapORFBlock.ORFTuple(orf_type = 64, send_receive = 3)) == b'@\x03'
201 raw(BGPCapORF()) == b'\x03\x00'
204 raw(BGPCapORF(orf = [BGPCapORFBlock(afi = 1, safi = 1, entries = [BGPCapORFBlock.ORFTuple(orf_type …
207 raw(BGPCapORF(orf = [BGPCapORFBlock(afi = 1, safi = 1, entries = [BGPCapORFBlock.ORFTuple(orf_type …
226 raw(BGPCapGracefulRestart.GRTuple()) == b'\x00\x00\x00\x00'
229 raw(BGPCapGracefulRestart.GRTuple(afi = 1, safi = 1, flags = 128)) == b'\x00\x01\x01\x80'
248 raw(BGPCapGracefulRestart()) == b'@\x02\x00\x00'
251 raw(BGPCapGracefulRestart(restart_time = 120, entries = [BGPCapGracefulRestart.GRTuple(afi = 1, saf…
254 raw(BGPCapGracefulRestart(restart_time = 120, entries = [BGPCapGracefulRestart.GRTuple(afi = 1, saf…
257 raw(BGPCapGracefulRestart(restart_time = 120, entries = [BGPCapGracefulRestart.GRTuple(afi = 1, saf…
260 raw(BGPCapGracefulRestart(restart_time = 120, restart_flags = 0x8, entries = [BGPCapGracefulRestart…
279 raw(BGPCapFourBytesASN()) == b'A\x04\x00\x00\x00\x00'
282 raw(BGPCapFourBytesASN(asn = 6555555)) == b'A\x04\x00d\x07\xa3'
285 raw(BGPCapFourBytesASN(asn = 4294967295)) == b'A\x04\xff\xff\xff\xff'
300 raw(BGPAuthenticationInformation()) == b'\x00'
311 raw(BGPOptParam()) == b'\x02\x00'
314 raw(BGPOptParam(param_type = 1)) == b'\x01\x00'
315 raw(BGPOptParam(param_type = 1, param_value = BGPAuthenticationInformation())) == b'\x01\x00'
318 raw(BGPOptParam(param_type = 2)) == b'\x02\x00'
321 raw(BGPOptParam(param_type = 2, param_value = BGPCapFourBytesASN(asn = 4294967295))) == b'\x02\x06A…
324 raw(BGPOptParam(param_type = 2, param_value = BGPCapability(code = 127))) == b'\x02\x02\x7f\x00'
327 raw(BGPOptParam(param_type = 2, param_value = BGPCapability(code = 255))) == b'\x02\x02\xff\x00'
342 raw(BGPOpen()) == b'\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00'
345 raw(BGPOpen(my_as = 64501, bgp_id = "192.0.2.1")) == b'\x04\xfb\xf5\x00\x00\xc0\x00\x02\x01\x00'
349 raw(BGPOpen(my_as = 64501, bgp_id = "192.0.2.1", opt_params = [opt])) == b'\x04\xfb\xf5\x00\x00\xc0…
362 raw(BGPOpen(my_as = 64503, bgp_id = "192.168.100.3", hold_time = 30, opt_params = capabilities)) ==…
382 raw(m) == b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00=\x01\x04\xfb\xf6\x…
397 raw(BGPPAOrigin()) == b'\x00'
400 raw(BGPPAOrigin(origin = 1)) == b'\x01'
411 raw(BGPPAASPath()) == b''
414 raw(BGPPAASPath(segments = [BGPPAASPath.ASPathSegment(segment_type = 2, segment_value = [64496, 644…
417 raw(BGPPAASPath(segments = [BGPPAASPath.ASPathSegment(segment_type = 1, segment_value = [64496, 644…
420 raw(BGPPAASPath(segments = [BGPPAASPath.ASPathSegment(segment_type = 1, segment_value = [64496, 644…
435 raw(BGPPANextHop()) == b'\x00\x00\x00\x00'
438 raw(BGPPANextHop(next_hop = "192.0.2.1")) == b'\xc0\x00\x02\x01'
453 raw(BGPPAMultiExitDisc()) == b'\x00\x00\x00\x00'
456 raw(BGPPAMultiExitDisc(med = 4)) == b'\x00\x00\x00\x04'
467 raw(BGPPALocalPref()) == b'\x00\x00\x00\x00'
470 raw(BGPPALocalPref(local_pref = 110)) == b'\x00\x00\x00n'
481 raw(BGPPAAggregator()) == b'\x00\x00\x00\x00\x00\x00'
484 raw(BGPPAAggregator(aggregator_asn = 64500, speaker_address = "192.0.2.1")) == b'\xfb\xf4\xc0\x00\x…
495 raw(BGPPACommunity()) == b'\x00\x00\x00\x00'
498 raw(BGPPACommunity(community = 0xFFFFFF01)) == b'\xff\xff\xff\x01'
509 raw(BGPPAOriginatorID()) == b'\x00\x00\x00\x00'
512 raw(BGPPAOriginatorID(originator_id = '192.0.2.1')) == b'\xc0\x00\x02\x01'
523 raw(BGPPAClusterList()) == b''
526 raw(BGPPAClusterList(cluster_list = [150000, 165465465, 132132])) == b'\x00\x02I\xf0\t\xdc\xcdy\x00…
537 raw(BGPPAMPReachNLRI()) == b'\x00\x00\x00\x00\x00'
540 raw(BGPPAMPReachNLRI(afi=2, safi=1, nh_addr_len=16, nh_v6_addr = "2001:db8::2", nlri = [BGPNLRI_IPv…
548 …0 and a.nlri[0].prefix == "400::/6" and a.nlri[1].prefix == "800::/5" and raw(a.nlri[18]) == b'`\…
555 raw(BGPPAMPUnreachNLRI()) == b'\x00\x00\x00'
558 raw(BGPPAMPUnreachNLRI(afi = 2, safi = 1)) == b'\x00\x02\x01'
561 raw(BGPPAMPUnreachNLRI(afi = 2, safi = 1, afi_safi_specific = BGPPAMPUnreachNLRI_IPv6(withdrawn_rou…
576 raw(BGPPAAS4Aggregator()) == b'\x00\x00\x00\x00\x00\x00\x00\x00'
579 raw(BGPPAAS4Aggregator(aggregator_asn = 644566565, speaker_address = "192.0.2.1")) == b'&kN%\xc0\x0…
590 raw(BGPPathAttr()) == b'\x80\x00\x00'
593 raw(BGPPathAttr(type_code = 1, attribute = BGPPAOrigin(origin = 0)))
596 raw(BGPPathAttr(type_code = 2, attribute = BGPPAASPath(segments = [BGPPAASPath.ASPathSegment(segmen…
600 raw(BGPPathAttr(type_code = 14, attribute = BGPPAMPReachNLRI(afi = 2, safi = 1, nh_addr_len = 16, n…
611 raw(BGPUpdate()) == b'\x00\x00\x00\x00'
652 p = BGP(raw(BGPHeader()/BGPUpdate()))
660 raw(BGPNotification()) == b'\x00\x00'
679 raw(BGPRouteRefresh()) == b'\x00\x01\x00\x01'
682 raw(BGPRouteRefresh(afi = 1, safi = 1)) == b'\x00\x01\x00\x01'