diff options
author | Lukasz Nowak <lnowak@tycoint.com> | 2017-02-03 10:43:31 +0000 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2017-02-04 18:49:26 +0100 |
commit | 823efdf82546e1f5953307a91dfec3e58d8281b2 (patch) | |
tree | 6d84726a97f1f09ced62bd369492afbe60af45ce /include/session.h | |
parent | fbf1533fb25000502357b37682fd73f0bd8520e9 (diff) | |
download | connman-823efdf82546e1f5953307a91dfec3e58d8281b2.tar.gz |
session: Add source ip rule
Implement an option for a session to enable packet filtering
based on interfce source ip address. This allows an application
to create a session, and direct traffic to a specific network
interface, on which the session is connected.
Applications can use bind before connect on a socket to specify
the source ip address.
This mechanism re-uses the routing table created by the session,
iproute fwmark rule, and adds a new iptables source ip rule.
Diffstat (limited to 'include/session.h')
-rw-r--r-- | include/session.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/session.h b/include/session.h index e8d7e932..48f15109 100644 --- a/include/session.h +++ b/include/session.h @@ -66,6 +66,7 @@ struct connman_session_config { bool ecall; GSList *allowed_bearers; char *allowed_interface; + bool source_ip_rule; }; typedef int (* connman_session_config_func_t) (struct connman_session *session, |