commit | 10650920d6e2197404da18fb973e79102b9dc8a3 | [log] [tgz] |
---|---|---|
author | Sean Tranchetti <stranche@codeaurora.org> | Thu Aug 16 11:42:59 2018 -0600 |
committer | Sean Tranchetti <stranche@codeaurora.org> | Fri Oct 19 10:17:01 2018 -0600 |
tree | 4a7d8cecf7a6368207f84503b2b287f266774836 | |
parent | cf3f8909a75ed27a887f0180d752ea1c4401cc86 [diff] |
librmnetctl: Proper error handling of if_nametoindex() if_nametoindex() returns an unsigned integer, so errors are indicated by returning 0 to the caller. This updates the error handling to check for 0 instead of negative numbers to avoid passing bogus netlink messages to the kernel. This allows for more consistent and helpful error messages to be returned to the caller Change-Id: I5f78781c973e7cb5a8bbc813a31cd49e433034a4