[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2014bcab0908112343x68d758e7x132f86b951093e12@mail.gmail.com>
Date: Wed, 12 Aug 2009 15:43:59 +0900
From: 홍신 shin hong <hongshin@...il.com>
To: netdev@...r.kernel.org
Subject: a question on packet_sock struct
Hi. I have a question on packet_sock struct
defined in net/packet/af_packet.c of Linux 2.6.30.4.
Is it necessary to hold a packet_sock's bind_lock
before accessing its ifindex field?
According to the definition of packet_sock struct,
it seems that an access to ifindex field should be
synchronized by the bind_lock.
However, according to the its usage in the code,
ifindex accesses are not consistently protected
by the bind_lock.
Thank you
Sincerely
Shin Hong
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists