/* * netsniff-ng - the packet sniffing beast * Copyright 2012 Markus Amend , Deutsche Flugsicherung GmbH * Subject to the GPL, version 2. * * Encapsulating Security Payload described in RFC4303 */ #include #include #include /* for ntohs() */ #include "proto.h" #include "protos.h" #include "built_in.h" #include "pkt_buff.h" struct esp_hdr { uint32_t h_spi; uint32_t h_sn; } __packed; static void esp(struct pkt_buff *pkt) { struct esp_hdr *esp_ops; esp_ops = (struct esp_hdr *) pkt_pull(pkt, sizeof(*esp_ops)); if (esp_ops == NULL) return; tprintf(" [ ESP "); tprintf("SPI (0x%x), ", ntohl(esp_ops->h_spi)); tprintf("SN (0x%x)", ntohl(esp_ops->h_sn)); tprintf(" ]\n"); } static void esp_less(struct pkt_buff *pkt) { struct esp_hdr *esp_ops; esp_ops = (struct esp_hdr *) pkt_pull(pkt, sizeof(*esp_ops)); if (esp_ops == NULL) return; tprintf(" ESP"); } struct protocol ip_esp_ops = { .key = 0x32, .print_full = esp, .print_less = esp_less, }; it();'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
lass='right'>2016-05-06 14:27:48 +0300
AgeCommit message (Expand)AuthorFilesLines
committerKalle Valo <kvalo@codeaurora.org>2016-05-06 14:27:48 +0300
commitcbbba30f1ac95a04aae9c61a55aebe5e6fdf29f0 (patch)
tree93b44240203fa54e491d5dafa6cb6506524eef1d
parente2841ea91611622370f66b4dfaa62599e8850d48 (diff)
parent5c08b0f5026fcc13efb947c4d1f2ca3558145f68 (diff)
Merge tag 'iwlwifi-for-kalle-2016-05-04' of https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes
* fix P2P rates (and possibly other issues)