- 20 12月, 2018 5 次提交
-
-
由 Guillaume Nault 提交于
Using NLM_F_ACK in these functions is confusing because they don't parse any netlink response. In fact, NLM_F_ACK is only required internally by rtnl_talk(), which already adds it when its 'answer' parameter is NULL. Therefore it's useless to manually set it in functions that don't set 'answer'. Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
-
由 Guillaume Nault 提交于
These are deletion requests. NLM_F_CREATE is confusing for readers and ignored by kernel. Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
-
由 Guillaume Nault 提交于
No need to be clever here. All IPv6 routes have global scope (kernel ignores rtm_scope for IPv6 and always reports RT_SCOPE_UNIVERSE when dumping such routes). Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
-
由 Guillaume Nault 提交于
From a logical point of view, we have link scope if no gateway is present, and global scope otherwise. Therefore it makes more sense to set rtm_scope depending on 'gw' rather than on 'ifindex'. Currently, callers of iproute_add() and iproute_del() either set 'ifindex' or 'gw', but never both. So even if confusing, the current code results in right scope selection. However one can't figure this out without analysing every caller. We should set rtm_scope based on the presence of the gateway instead. Given the current code base, that doesn't change the end result, but that better maches the scope concept. Also, that's the way iproute2 does its selection. Furthermore, it'd be perfectly valid to have both 'iface' and 'gw' set. In that case, scope should be RT_SCOPE_UNIVERSE instead of RT_SCOPE_LINK. Basing scope selection on 'gw' makes this case work correctly. Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
-
由 Guillaume Nault 提交于
Rework iproute_del() to have the same parameters as iproute_add(). This will allow callers to specify more precisely the route they want to delete. Callers will later be converted to make use of these parameters to ensure that the removed route precisely matches the one that was originaly inserted. Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
-
- 04 12月, 2018 1 次提交
-
-
由 Guillaume Nault 提交于
Let callers set a gateway and a priority to IPv6 routes. This is necessary for implementing the RADIUS Framed-IPv6-Route attribute. Also let ip6route_del() configure .rtm_protocol. This is already implemented in ip6route_add(), so we need to add the ip6route_del() counterpart. Otherwise, we couldn't delete routes that were added using a non-zero protocol. Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
-
- 25 5月, 2018 2 次提交
-
-
由 Dmitry Kozlov 提交于
-
由 Dmitry Kozlov 提交于
-
- 22 2月, 2018 1 次提交
-
-
由 Guillaume Nault 提交于
Let an optional route priority (aka metric) be defined in RADIUS Framed-Route attributes. The priority is an integer placed at the end of the route string. This is backward compatible with the previous format and also conforms with the recommended format defined by RFC 2865 (although we don't allow multiple metrics). Framed-Route format is: <network> [<gateway> [<priority>]] For example, 'Framed-Route = "192.0.2.0/24 203.0.113.1 8"' will let the following route be installed (assuming 203.0.113.1 is routed through eth0): $ ip route show [...] 192.0.2.0/24 via 203.0.113.1 dev eth0 metric 8 It's possible to use the unspecified gateway (0.0.0.0) if one wants to set a priority without specifying a gateway address. Finally, route deletion now also takes the priority into account, in order to avoid removing a different route accidentally. Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
-
- 13 1月, 2018 1 次提交
-
-
由 Vladislav Grishenko 提交于
-
- 25 12月, 2017 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 25 9月, 2017 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 08 12月, 2016 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 12 11月, 2016 1 次提交
-
-
由 Michael Furmur 提交于
-
- 11 7月, 2016 1 次提交
-
-
由 Dmitry Kozlov 提交于
This is done using radius attribute NAS-Port-Id. The new format of this attribute is NAS-Port-Id=[ns/][name]. Namespaces must be created malually by "ip netns add ..." command
-
- 12 4月, 2016 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 05 4月, 2016 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 04 4月, 2016 1 次提交
-
-
由 Dmitry Kozlov 提交于
ipoe,pppoe,vlan_mon: deleted conditions to simultaneous start ipoe and pppoe on same interfaces (started by vlan_mon)
-
- 04 1月, 2016 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 26 12月, 2015 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 18 11月, 2015 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 01 12月, 2014 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 22 11月, 2014 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 28 10月, 2014 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 27 10月, 2014 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 18 7月, 2014 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 26 5月, 2014 1 次提交
-
-
由 Dmitry Kozlov 提交于
Before this time accel-ppp always worked in "ip unnumbered" mode. This option may turn this mode off (default is on)
-
- 19 1月, 2014 1 次提交
-
-
由 Dmitry Kozlov 提交于
Signed-off-by: NDmitry Kozlov <xeb@mail.ru>
-
- 30 10月, 2013 1 次提交
-
-
由 Dmitry Kozlov 提交于
Signed-off-by: NDmitry Kozlov <xeb@mail.ru>
-
- 01 9月, 2013 2 次提交
-
-
由 Dmitry Kozlov 提交于
-
由 Dmitry Kozlov 提交于
-
- 26 7月, 2013 1 次提交
-
-
由 Kozlov Dmitry 提交于
-
- 14 6月, 2013 1 次提交
-
-
由 Dmitry Kozlov 提交于
-
- 26 1月, 2013 1 次提交
-
-
由 Kozlov Dmitry 提交于
-
- 06 9月, 2012 1 次提交
-
-
由 Kozlov Dmitry 提交于
-
- 19 7月, 2012 1 次提交
-
-
由 Kozlov Dmitry 提交于
ipoe: implemented client address, router address and mask to be passed via radius
-
- 15 7月, 2012 1 次提交
-
-
由 Kozlov Dmitry 提交于
-
- 11 7月, 2012 1 次提交
-
-
由 Kozlov Dmitry 提交于
-
- 22 6月, 2012 1 次提交
-
-
由 Kozlov Dmitry 提交于
-