-
-
Notifications
You must be signed in to change notification settings - Fork 101
source ip interface/address #81
base: master
Are you sure you want to change the base?
Conversation
This patch adds code in _pam_parse() to parse new option "source_ip" and stores the converted address information in static memory. The address info is then used when calling tac_connect_single(). Note: at this moment, the "source_ip" is an ipv4 address in dot-decimal notation. It could be expanded to accept ip interface name and support ipv6.
Addition of source IP interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit should be rebased as a 'fixup' onto the first commit, and then force pushed.
In general, I'm opposed to this change. We're seeing an increase of session parameters (not a bad thing) but they're being added as globals (which is a bad thing). Please look at PR #78 and consider making this a session parameter instead. |
Having had a look at PR #78, it may not be a very bad idea to make srcaddr a member of struct tac_session, but I failed to see any real benefit from doing so. My understanding is that the srcaddr is used only in and by tac_connect_single() and it is already there but not used (NULL was passed in always). There is no much similarity to putting fd to the session. |
A What do you mean "NULL was passed in always"? It's passed in as |
@pprindeville We can rework this change based on PR #78, but is PR #78 going to be merged? |
This patch adds code in _pam_parse() to parse new option "source_ip" and stores the converted address information in static memory. The address info is then used when calling tac_connect_single().