diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-06-29 20:55:42 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-06-30 12:24:41 +0900 |
commit | 8907f5e426652e419ff08f8e6346e3448f876fd0 (patch) | |
tree | be2e1b8f5483ff46b1f252e71afe584ec60dd459 /etc | |
parent | d94f7bd0fb00b98b3f4695a9344c03a894350acc (diff) |
bgp: clean up getpeername() and getsockname() usage
The current code calls getpeername() and getsockname() at lots of
places. The formats of the return values of getpeername() and
getsockname() are different between ipv4 and v6. So the code became
messy.
Calling getpeername() and getsockname() at one place and caching the
results is ideal. But that needs some refactoring. This patch is kinda
halfway.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions