core: list iptables sharing rules in the right order
authorBeniamino Galvani <bgalvani@redhat.com>
Thu, 21 Jan 2016 15:39:55 +0000 (16:39 +0100)
committerBeniamino Galvani <bgalvani@redhat.com>
Sat, 23 Jan 2016 09:01:21 +0000 (10:01 +0100)
commit8cba3e046eb8e3db9ab0bd55bbadc6cb8043096d
tree1994dece5393ff188ca1dfcb221742b15965daf1
parentba24a127398310ccfe8ac2bc4a207805d3bb9818
core: list iptables sharing rules in the right order

The rules were added to the list using g_slist_append() and then
applied one at time using "iptables --insert" which puts them at the
beginning of the chain, reversing the initial order.

Instead, list them in the desired order and use g_slist_prepend() to
achieve the same result. This has no functional changes.
src/devices/nm-device.c
src/nm-activation-request.c