/* * netsniff-ng - the packet sniffing beast * Copyright 2012 Markus Amend , Deutsche Flugsicherung GmbH * Subject to the GPL, version 2. * * IPv6 No Next Header described in RFC2460 */ #include #include #include /* for ntohs() */ #include "proto.h" #include "protos.h" #include "dissector_eth.h" #include "built_in.h" static void no_next_header(struct pkt_buff *pkt) { /* * The value 59 in the Next Header field of an IPv6 header or any * extension header indicates that there is nothing following that * header. If the Payload Length field of the IPv6 header indicates the * presence of octets past the end of a header whose Next Header field * contains 59, those octets must be ignored, and passed on unchanged if * the packet is forwarded. */ tprintf(" [ No Next Header"); tprintf(" ]\n"); } static void no_next_header_less(struct pkt_buff *pkt) { tprintf(" No Next Header"); } struct protocol ipv6_no_next_header_ops = { .key = 0x3B, .print_full = no_next_header, .print_less = no_next_header_less, }; 'nds-private-remove'>nds-private-remove net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-10-04 11:40:44 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-10-04 11:46:51 -0700
commita831776323e7c532ef9c88d0d62512ae15d78415 (patch)
tree08b81fcc217d0a8cacb721feda78d85c738aa810
parent4777ac220c430173e297237b896932ed5fd8aaf3 (diff)
Input: ALPS - handle 0-pressure 1F events
While a button is held SS5 hardware will give us single-finger packets with x, y, and pressure equal to zero. This causes annoying jumps in pointer position if a touch is released while the button is held. Handle this by claiming zero contacts to ensure that no position events are provided to the user. Reviewed-by: Pali Rohár <pali.rohar@gmail.com> Tested-by: Michal Hocko <mhocko@suse.com> Signed-off-by: Ben Gamari <ben@smart-cactus.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>