On Sun, 29 Jun 2014 20:55:42 +0900 FUJITA Tomonori <[email protected]> wrote:
> 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 <[email protected]> > --- > ryu/services/protocols/bgp/base.py | 24 ++++++++++++++++++------ > ryu/services/protocols/bgp/core.py | 10 +++------- > ryu/services/protocols/bgp/peer.py | 6 ++---- > ryu/services/protocols/bgp/speaker.py | 34 ++++++++++++---------------------- > 4 files changed, 35 insertions(+), 39 deletions(-) Applied 1-4. ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
