#include #include #include #include "promisc.h" #include "dev.h" short enter_promiscuous_mode(char *ifname) { short ifflags; if (!strncmp("any", ifname, strlen("any"))) return 0; ifflags = device_get_flags(ifname); device_set_flags(ifname, ifflags | IFF_PROMISC); return ifflags; } void leave_promiscuous_mode(char *ifname, short oldflags) { if (!strncmp("any", ifname, strlen("any"))) return; device_set_flags(ifname, oldflags); } >
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2016-12-29 04:06:11 -0800
committerAndy Gross <andy.gross@linaro.org>2017-01-02 10:47:10 -0600
commit542b9f0759ed74ca0f1a9f3ff090c95ea73eba91 (patch)
tree2b6cb9ebf22de60a9ba5c192f89e8e48c1086836
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff)
ARM: dts: qcom: apq8064: Add missing scm clock
As per the device tree binding the apq8064 scm node requires the core clock to be specified, so add this. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>