Revision 1389f369 proto/bgp/packets.c
proto/bgp/packets.c | ||
---|---|---|
700 | 700 |
/* Create fake NEXT_HOP attribute */ |
701 | 701 |
if (len < 1 || (*x != 16 && *x != 32) || len < *x + 2) |
702 | 702 |
goto bad; |
703 |
bgp_attach_attr_ip(&a0->eattrs, bgp_linpool, BA_NEXT_HOP, x[1]);
|
|
703 |
memcpy(bgp_attach_attr_wa(&a0->eattrs, bgp_linpool, BA_NEXT_HOP, 16), x+1, 16);
|
|
704 | 704 |
len -= *x + 2; |
705 | 705 |
x += *x + 1; |
706 | 706 |
|
Also available in: Unified diff