Changeset 32603


Ignore:
Timestamp:
Jul 8, 2017, 11:55:01 AM (3 weeks ago)
Author:
brainslayer
Message:

uuid function

Location:
src/router
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/libutils/utils.c

    r32589 r32603  
    73717371#include <crypt.h>
    73727372
     7373char *getUUID(char *buf)
     7374{
     7375        FILE *fp = fopen("/proc/sys/kernel/random/uuid", "rb");
     7376        fscanf(fp, "%s", buf);
     7377        fclose(fp);
     7378}
     7379
    73737380char *zencrypt(char *passwd, char *passout)
    73747381{
  • src/router/shared/utils.h

    r32498 r32603  
    11561156int get_ath9k_phy_idx(int idx);
    11571157int get_ath9k_phy_ifname(const char *ifname);
    1158 
     1158char *getUUID(char *buf);
    11591159char *getWifiDeviceName(char *prefix);
    11601160
Note: See TracChangeset for help on using the changeset viewer.