Home
last modified time | relevance | path

Searched refs:BGP_MARKER_SIZE (Results 1 – 16 of 16) sorted by relevance

/dports/net-mgmt/pmacct/pmacct-1.7.5/src/bgp/
H A Dbgp_packet.h37 #define BGP_MARKER_SIZE 16 /* size of BGP marker */ macro
71 u_int8_t bgpo_marker[BGP_MARKER_SIZE];
78 u_int8_t bgpo_marker[BGP_MARKER_SIZE];
114 u_int8_t bgpn_marker[BGP_MARKER_SIZE];
134 u_int8_t bgpr_marker[BGP_MARKER_SIZE];
H A Dbgp_msg.c65 if (bgp_marker_check(bhdr, BGP_MARKER_SIZE) == ERR) { in bgp_parse_msg()
439 memset(&bhdr.bgpo_marker, 0xff, BGP_MARKER_SIZE); in bgp_write_keepalive_msg()
456 memset(bopen_reply->bgpo_marker, 0xff, BGP_MARKER_SIZE); in bgp_write_open_msg()
525 memset(bn_reply->bgpn_marker, 0xff, BGP_MARKER_SIZE); in bgp_write_notification_msg()
H A Dbgp.c915 if (bgp_marker_check(bhdr, BGP_MARKER_SIZE) == ERR) { in skinny_bgp_daemon_online()
H A Dbgp_util.c1567 if (bgp_marker_check(bhdr, BGP_MARKER_SIZE) != ERR) { in bgp_get_packet_len()
/dports/net/frr7-pythontools/frr-frr-7.5.1/bgpd/
H A Dbgp_io.c220 ringbuf_peek(ibw, BGP_MARKER_SIZE, &pktsize, sizeof(pktsize)); in bgp_process_reads()
371 stream_set_getp(s, BGP_MARKER_SIZE + 2); in bgp_write()
517 static const uint8_t m_correct[BGP_MARKER_SIZE] = { in validate_header()
520 uint8_t m_rx[BGP_MARKER_SIZE] = {0x00}; in validate_header()
522 if (ringbuf_peek(pkt, 0, m_rx, BGP_MARKER_SIZE) != BGP_MARKER_SIZE) in validate_header()
525 if (memcmp(m_correct, m_rx, BGP_MARKER_SIZE) != 0) { in validate_header()
532 ringbuf_peek(pkt, BGP_MARKER_SIZE, &size, sizeof(size)); in validate_header()
533 ringbuf_peek(pkt, BGP_MARKER_SIZE + 2, &type, sizeof(type)); in validate_header()
H A Dbgp_packet.c89 for (i = 0; i < BGP_MARKER_SIZE; i++) in bgp_packet_set_marker()
116 stream_putw_at(s, BGP_MARKER_SIZE, cp); in bgp_packet_set_size()
635 stream_set_getp(s, BGP_MARKER_SIZE + 2); in bgp_write_notify()
2356 stream_forward_getp(peer->curr, BGP_MARKER_SIZE); in bgp_process_packet()
H A Dbgpd.h804 #define BGP_MARKER_SIZE 16 macro
/dports/net/frr7/frr-frr-7.5.1/bgpd/
H A Dbgp_io.c220 ringbuf_peek(ibw, BGP_MARKER_SIZE, &pktsize, sizeof(pktsize)); in bgp_process_reads()
371 stream_set_getp(s, BGP_MARKER_SIZE + 2); in bgp_write()
517 static const uint8_t m_correct[BGP_MARKER_SIZE] = { in validate_header()
520 uint8_t m_rx[BGP_MARKER_SIZE] = {0x00}; in validate_header()
522 if (ringbuf_peek(pkt, 0, m_rx, BGP_MARKER_SIZE) != BGP_MARKER_SIZE) in validate_header()
525 if (memcmp(m_correct, m_rx, BGP_MARKER_SIZE) != 0) { in validate_header()
532 ringbuf_peek(pkt, BGP_MARKER_SIZE, &size, sizeof(size)); in validate_header()
533 ringbuf_peek(pkt, BGP_MARKER_SIZE + 2, &type, sizeof(type)); in validate_header()
H A Dbgp_packet.c89 for (i = 0; i < BGP_MARKER_SIZE; i++) in bgp_packet_set_marker()
116 stream_putw_at(s, BGP_MARKER_SIZE, cp); in bgp_packet_set_size()
635 stream_set_getp(s, BGP_MARKER_SIZE + 2); in bgp_write_notify()
2356 stream_forward_getp(peer->curr, BGP_MARKER_SIZE); in bgp_process_packet()
H A Dbgpd.h804 #define BGP_MARKER_SIZE 16 macro
/dports/net/quagga/quagga-1.2.4/bgpd/
H A Dbgp_packet.c63 for (i = 0; i < BGP_MARKER_SIZE; i++) in bgp_packet_set_marker()
85 stream_putw_at (s, BGP_MARKER_SIZE, cp); in bgp_packet_set_size()
756 stream_set_getp (s, BGP_MARKER_SIZE + 2); in bgp_write()
835 stream_set_getp (s, BGP_MARKER_SIZE + 2); in bgp_write_notify()
2597 stream_forward_getp (peer->ibuf, BGP_MARKER_SIZE); in bgp_read()
2608 && ! bgp_marker_all_one (peer->ibuf, BGP_MARKER_SIZE)) in bgp_read()
2666 size = stream_getw_from (peer->ibuf, BGP_MARKER_SIZE); in bgp_read()
2667 type = stream_getc_from (peer->ibuf, BGP_MARKER_SIZE + 2); in bgp_read()
H A Dbgpd.h613 #define BGP_MARKER_SIZE 16 macro
/dports/net/wireshark-lite/wireshark-3.6.1/epan/dissectors/
H A Dpacket-bgp.c7578 offset = BGP_MARKER_SIZE + 2 + 1; in dissect_bgp_open()
9946 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_update()
10062 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_notification()
10063 offset = BGP_MARKER_SIZE + 2 + 1; in dissect_bgp_notification()
10162 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_route_refresh()
10247 static const guint8 valid_marker[BGP_MARKER_SIZE] = { in dissect_bgp_pdu()
10252 bgp_len = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_pdu()
10253 bgp_type = tvb_get_guint8(tvb, BGP_MARKER_SIZE + 2); in dissect_bgp_pdu()
10293 BGP_MARKER_SIZE, ENC_NA); in dissect_bgp_pdu()
10368 if (reported_length_remaining > BGP_MARKER_SIZE) in dissect_bgp()
[all …]
/dports/net/tshark-lite/wireshark-3.6.1/epan/dissectors/
H A Dpacket-bgp.c7578 offset = BGP_MARKER_SIZE + 2 + 1;
9946 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE);
10062 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE);
10063 offset = BGP_MARKER_SIZE + 2 + 1;
10162 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE);
10247 static const guint8 valid_marker[BGP_MARKER_SIZE] = {
10252 bgp_len = tvb_get_ntohs(tvb, BGP_MARKER_SIZE);
10253 bgp_type = tvb_get_guint8(tvb, BGP_MARKER_SIZE + 2);
10293 BGP_MARKER_SIZE, ENC_NA);
10368 if (reported_length_remaining > BGP_MARKER_SIZE)
[all …]
/dports/net/tshark/wireshark-3.6.1/epan/dissectors/
H A Dpacket-bgp.c7578 offset = BGP_MARKER_SIZE + 2 + 1; in dissect_bgp_open()
9946 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_update()
10062 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_notification()
10063 offset = BGP_MARKER_SIZE + 2 + 1; in dissect_bgp_notification()
10162 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_route_refresh()
10247 static const guint8 valid_marker[BGP_MARKER_SIZE] = { in dissect_bgp_pdu()
10252 bgp_len = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_pdu()
10253 bgp_type = tvb_get_guint8(tvb, BGP_MARKER_SIZE + 2); in dissect_bgp_pdu()
10293 BGP_MARKER_SIZE, ENC_NA); in dissect_bgp_pdu()
10368 if (reported_length_remaining > BGP_MARKER_SIZE) in dissect_bgp()
[all …]
/dports/net/wireshark/wireshark-3.6.1/epan/dissectors/
H A Dpacket-bgp.c7578 offset = BGP_MARKER_SIZE + 2 + 1; in dissect_bgp_open()
9946 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_update()
10062 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_notification()
10063 offset = BGP_MARKER_SIZE + 2 + 1; in dissect_bgp_notification()
10162 hlen = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_route_refresh()
10247 static const guint8 valid_marker[BGP_MARKER_SIZE] = { in dissect_bgp_pdu()
10252 bgp_len = tvb_get_ntohs(tvb, BGP_MARKER_SIZE); in dissect_bgp_pdu()
10253 bgp_type = tvb_get_guint8(tvb, BGP_MARKER_SIZE + 2); in dissect_bgp_pdu()
10293 BGP_MARKER_SIZE, ENC_NA); in dissect_bgp_pdu()
10368 if (reported_length_remaining > BGP_MARKER_SIZE) in dissect_bgp()
[all …]