Revision ae80a2de proto/bgp/attrs.c

View differences:

proto/bgp/attrs.c
114 114

  
115 115
/* Validates path attribute, removes AS_CONFED_* segments, and also returns path length */
116 116
static int
117
validate_path(struct bgp_proto *p, int as_path, int bs, byte *idata, unsigned int *ilength)
117
validate_path(struct bgp_proto *p, int as_path, int bs, byte *idata, uint *ilength)
118 118
{
119 119
  int res = 0;
120 120
  u8 *a, *dst;
......
381 381
}
382 382

  
383 383
static int
384
bgp_encode_attr_hdr(byte *dst, unsigned int flags, unsigned code, int len)
384
bgp_encode_attr_hdr(byte *dst, uint flags, unsigned code, int len)
385 385
{
386 386
  int wlen;
387 387

  
......
473 473
 *
474 474
 * Result: Length of the attribute block generated or -1 if not enough space.
475 475
 */
476
unsigned int
476
uint
477 477
bgp_encode_attrs(struct bgp_proto *p, byte *w, ea_list *attrs, int remains)
478 478
{
479
  unsigned int i, code, type, flags;
479
  uint i, code, type, flags;
480 480
  byte *start = w;
481 481
  int len, rv;
482 482

  
......
1593 1593
 * by a &rta.
1594 1594
 */
1595 1595
struct rta *
1596
bgp_decode_attrs(struct bgp_conn *conn, byte *attr, unsigned int len, struct linpool *pool, int mandatory)
1596
bgp_decode_attrs(struct bgp_conn *conn, byte *attr, uint len, struct linpool *pool, int mandatory)
1597 1597
{
1598 1598
  struct bgp_proto *bgp = conn->bgp;
1599 1599
  rta *a = lp_alloc(pool, sizeof(struct rta));
1600
  unsigned int flags, code, l, i, type;
1600
  uint flags, code, l, i, type;
1601 1601
  int errcode;
1602 1602
  byte *z, *attr_start;
1603 1603
  byte seen[256/8];
......
1791 1791
int
1792 1792
bgp_get_attr(eattr *a, byte *buf, int buflen)
1793 1793
{
1794
  unsigned int i = EA_ID(a->id);
1794
  uint i = EA_ID(a->id);
1795 1795
  struct attr_desc *d;
1796 1796
  int len;
1797 1797

  

Also available in: Unified diff