commit | 51133f5ead2c141997fd930dc6552214cbe236b7 | [log] [tgz] |
---|---|---|
author | Sean Tranchetti <stranche@codeaurora.org> | Tue Feb 12 12:54:34 2019 -0700 |
committer | Sean Tranchetti <stranche@codeaurora.org> | Mon Apr 01 17:43:05 2019 -0600 |
tree | 2be14b466bc323fbef9b82716300e877dafa6877 | |
parent | 4b9af70b50ca47ccf0a34907497341842e772864 [diff] |
librmnetctl: introduce and use rta_put() helper Every single time we add an RTA to a netlink message in the current code, we copy-paste the same code. This is very messy and not very maintainable. This patch adds a function to handle adding the RTA to the netlink message, and updates the code to call this function in each case. Change-Id: I4276b31ab8e6c61da299c6d2edf15a38c1370d37 Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>