UTILITY FUNCTIONS ******************************************************************/
| 220 | UTILITY FUNCTIONS |
| 221 | ******************************************************************/ |
| 222 | static void |
| 223 | ng_ether_sanitize_ifname(const char *ifname, char *name) |
| 224 | { |
| 225 | int i; |
| 226 | |
| 227 | for (i = 0; i < IFNAMSIZ; i++) { |
| 228 | if (ifname[i] == '.' || ifname[i] == ':') |
| 229 | name[i] = '_'; |
| 230 | else |
| 231 | name[i] = ifname[i]; |
| 232 | if (name[i] == '\0') |
| 233 | break; |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | /****************************************************************** |
| 238 | ETHERNET FUNCTION HOOKS |
no outgoing calls
no test coverage detected