Lines Matching refs:bgpa
1570 struct bgp_attr bgpa; in bgp_attr_print() local
1572 TCHECK2(tptr[0], sizeof(bgpa)); in bgp_attr_print()
1573 memcpy(&bgpa, tptr, sizeof(bgpa)); in bgp_attr_print()
1574 alen = bgp_attr_len(&bgpa); in bgp_attr_print()
1575 tptr += bgp_attr_off(&bgpa); in bgp_attr_print()
1576 len -= bgp_attr_off(&bgpa); in bgp_attr_print()
1580 "Unknown Attribute", bgpa.bgpa_type, in bgp_attr_print()
1582 bgpa.bgpa_type, in bgp_attr_print()
1585 if (bgpa.bgpa_flags) { in bgp_attr_print()
1587 bgpa.bgpa_flags & 0x80 ? "O" : "", in bgp_attr_print()
1588 bgpa.bgpa_flags & 0x40 ? "T" : "", in bgp_attr_print()
1589 bgpa.bgpa_flags & 0x20 ? "P" : "", in bgp_attr_print()
1590 bgpa.bgpa_flags & 0x10 ? "E" : ""); in bgp_attr_print()
1591 if (bgpa.bgpa_flags & 0xf) in bgp_attr_print()
1592 printf("+%x", bgpa.bgpa_flags & 0xf); in bgp_attr_print()
1596 if (!bgp_attr_print(&bgpa, tptr, alen)) in bgp_attr_print()
1742 struct bgp_attr bgpa; in bgp_update_print() local
1801 TCHECK2(p[i], sizeof(bgpa)); in bgp_update_print()
1802 memcpy(&bgpa, &p[i], sizeof(bgpa)); in bgp_update_print()
1803 alen = bgp_attr_len(&bgpa); in bgp_update_print()
1804 aoff = bgp_attr_off(&bgpa); in bgp_update_print()
1808 bgpa.bgpa_type, in bgp_update_print()
1810 bgpa.bgpa_type, in bgp_update_print()
1813 if (bgpa.bgpa_flags) { in bgp_update_print()
1815 bgpa.bgpa_flags & 0x80 ? "O" : "", in bgp_update_print()
1816 bgpa.bgpa_flags & 0x40 ? "T" : "", in bgp_update_print()
1817 bgpa.bgpa_flags & 0x20 ? "P" : "", in bgp_update_print()
1818 bgpa.bgpa_flags & 0x10 ? "E" : ""); in bgp_update_print()
1819 if (bgpa.bgpa_flags & 0xf) in bgp_update_print()
1820 printf("+%x", bgpa.bgpa_flags & 0xf); in bgp_update_print()
1823 if (!bgp_attr_print(&bgpa, &p[i + aoff], alen)) in bgp_update_print()