diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-08-09 12:21:04 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-08-09 12:21:04 +0000 |
commit | d38fc1b5512450a2b8d8e179071104728a16baad (patch) | |
tree | 811fd818b9d7ffef2e0b6b4fca4cc242ab20432e /usr.sbin | |
parent | 8c436ec2613b075cd296f7213e234bd2ae6c6f2e (diff) |
Make two very internal functions static. They are used to merge an
AS_PATH with a AS4_PATH and are therefor fairly special.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/rde_attr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c index a5291c2a390..54f8b82e4bf 100644 --- a/usr.sbin/bgpd/rde_attr.c +++ b/usr.sbin/bgpd/rde_attr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_attr.c,v 1.107 2018/08/08 14:29:05 claudio Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.108 2018/08/09 12:21:03 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -441,8 +441,8 @@ attr_put(struct attr *a) /* aspath specific functions */ -u_int16_t aspath_countlength(struct aspath *, u_int16_t, int); -void aspath_countcopy(struct aspath *, u_int16_t, u_int8_t *, +static u_int16_t aspath_countlength(struct aspath *, u_int16_t, int); +static void aspath_countcopy(struct aspath *, u_int16_t, u_int8_t *, u_int16_t, int); struct aspath *aspath_lookup(const void *, u_int16_t); @@ -692,7 +692,7 @@ aspath_count(const void *data, u_int16_t len) return (cnt); } -u_int16_t +static u_int16_t aspath_countlength(struct aspath *aspath, u_int16_t cnt, int headcnt) { const u_int8_t *seg; @@ -728,7 +728,7 @@ aspath_countlength(struct aspath *aspath, u_int16_t cnt, int headcnt) return (clen); } -void +static void aspath_countcopy(struct aspath *aspath, u_int16_t cnt, u_int8_t *buf, u_int16_t size, int headcnt) { |