Ticket #25 (accepted enhancement)
[Clustering] Allow session manager to bind to router as seperate id
| Reported by: | smoku | Owned by: | smoku |
|---|---|---|---|
| Priority: | major | Component: | General |
| Version: | 2.1 | Keywords: | |
| Cc: | Tracforge_linkmap: | ||
| Blocking: | Blocked By: |
Description
This patch is intended to allow the session manager to bind to the local router as an id (eg 'sm') seperate from the primary domain (eg, 'example.net'). This is settable in the run-time config file by use of the 'router_id' tag; the behaviour set by this patch does not change normal operation of the session manager.
The goal of this patch is to allow a future clustering component to bind to the local router as the primary domain, and route packets for JIDs@… to other nodes within the cluster as required, without confusing the local session manager or the clients.
Changes are to three files:
sm/main.c - Read in the 'router_id' value from the configuration file. sm/sm.h - Add the 'router_id' value to the sm_st definition. sm/sm.c - Send packets to the router using 'sm->router_id' instead of 'sm->id'
