• Robert Schmidt's avatar
    Refactor setInterfaceParameter() and bringInterfaceUp() · 2c878c10
    Robert Schmidt authored
    - refactor functions to make them shorter
    - provide doxygen strings
    - open socket for operation once instead of in each function
    - use named constant (from enum) to differentiate interface UP/DOWN
    - Linux kernel defines name length as IFNAM_SIZE, so use that for
      interface name length. Also, it seems no null-byte is needed.
    2c878c10
nas_config.c 5.55 KB