summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorJianguo Wu <wujianguo@chinatelecom.cn>2022-01-21 17:15:31 +0800
committerDavid S. Miller <davem@davemloft.net>2022-01-24 11:58:46 +0000
commit1d10f8a1f40b965d449e8f2d5ed7b96a7c138b77 (patch)
tree7865322f57c133bb4f43a1ec7942b5bea1339ad1 /net/ipv4
parentaa6034678e873db8bd5c5a4b73f8b88c469374d6 (diff)
downloadlinux-1d10f8a1f40b965d449e8f2d5ed7b96a7c138b77.tar.bz2
net-procfs: show net devices bound packet types
After commit:7866a621043f ("dev: add per net_device packet type chains"), we can not get packet types that are bound to a specified net device by /proc/net/ptype, this patch fix the regression. Run "tcpdump -i ens192 udp -nns0" Before and after apply this patch: Before: [root@localhost ~]# cat /proc/net/ptype Type Device Function 0800 ip_rcv 0806 arp_rcv 86dd ipv6_rcv After: [root@localhost ~]# cat /proc/net/ptype Type Device Function ALL ens192 tpacket_rcv 0800 ip_rcv 0806 arp_rcv 86dd ipv6_rcv v1 -> v2: - fix the regression rather than adding new /proc API as suggested by Stephen Hemminger. Fixes: 7866a621043f ("dev: add per net_device packet type chains") Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions