/* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. * Subject to the GPL, version 2. */ extern int set_sockopt_hwtimestamp(int sock, const char *dev); #ifdef __WITH_HARDWARE_TIMESTAMPING #include #include #include #include #include #include #include #include #include #include "xutils.h" int set_sockopt_hwtimestamp(int sock, const char *dev) { int timesource, ret; struct hwtstamp_config hwconfig; struct ifreq ifr; if (!strncmp("any", dev, strlen("any"))) return -1; memset(&hwconfig, 0, sizeof(hwconfig)); hwconfig.tx_type = HWTSTAMP_TX_OFF; hwconfig.rx_filter = HWTSTAMP_FILTER_ALL; memset(&ifr, 0, sizeof(ifr)); strlcpy(ifr.ifr_name, dev, sizeof(ifr.ifr_name)); ifr.ifr_data = &hwconfig; ret = ioctl(sock, SIOCSHWTSTAMP, &ifr); if (ret < 0) return -1; timesource = SOF_TIMESTAMPING_RAW_HARDWARE; return setsockopt(sock, SOL_PACKET, PACKET_TIMESTAMP, ×ource, sizeof(timesource)); } #else int set_sockopt_hwtimestamp(int sock, const char *dev) { return -1; } #endif cted='selected'>nds-private-remove net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Fujimaki <usk.fujimaki@gmail.com>2016-04-03 23:15:16 +0900
committerJiri Kosina <jkosina@suse.cz>2016-04-04 09:59:21 +0200
commitb94f7d5ddf1b114e66d9bcc07d0ead080470383b (patch)
tree4082bcf40f3dfafb43c3b3295b6dc5684daf4b8c /Documentation
parenteeb01a57921a5e373302733d7cdf1ca87da5375a (diff)
HID: asus: add support for VivoBook E200HA
Asus X205TA and E200HA built-in keyboard contain wrong logical maximum value in report descriptor. This patch correct wrong logical maximum in report descriptor. Signed-off-by: Yusuke Fujimaki <usk.fujimaki@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation')