CVSROOT: /cvs Module name: src Changes by: clau...@cvs.openbsd.org 2018/06/29 05:45:50
Modified files: usr.sbin/bgpd : bgpd.h name2id.c rde.h rde_attr.c rde_filter.c rde_rib.c Log message: Prepare the ground for allowing temporary aspath object living on the stack. To do this path_copy() gets a second argument (dst, src) and a new function path_prep() is introduced to initialize an aspath object. The current path_copy() usage is replaced with path_copy(path_get(), asp) which does the same. Additionally some const where added to the *_copy functions to make it more obvious which is the source and target. Also the pftable_ref() and rtlabel_ref() functions return now the id instead of void. OK sthen@