1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb/common
Amitay Isaacs f5b6a5b134 ctdb-common: For AF_PACKET socket types, protocol is in network order
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11770

From man page of packet(7):

                                             protocol is the  IEEE  802.3
   protocol  number  in  network  byte  order.  See the <linux/if_ether.h>
   include file for a list of allowed protocols.  When protocol is set  to
   htons(ETH_P_ALL),  then all protocols are received.

Protocol argument was changed from network order to host order wrongly
in commit 9f8395cb7d.

Specifying "protocol" field to socket(AF_PACKET, ...) call only affects
the packets that are recevied.  So use protocol = 0 when sending raw
packets.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Mar  4 12:58:50 CET 2016 on sn-devel-144
2016-03-04 12:58:50 +01:00
..
cmdline.c ctdb-common: Use new debug level API 2015-11-16 00:46:15 +01:00
cmdline.h ctdb-common: Add missing prototype for ctdb_cmdline_client() 2015-10-30 02:00:27 +01:00
comm.c ctdb-common: Add communication endpoint abstraction 2015-10-07 14:53:29 +02:00
comm.h ctdb-common: Add communication endpoint abstraction 2015-10-07 14:53:29 +02:00
common.h ctdb-daemon: Move ctdb_fork.c to server 2015-11-16 00:46:14 +01:00
ctdb_io.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
ctdb_ltdb.c ctdb-common: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_util.c ctdb-common: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
db_hash.c ctdb-common: Add db_hash abstraction 2015-10-07 14:53:28 +02:00
db_hash.h ctdb-common: Add db_hash abstraction 2015-10-07 14:53:28 +02:00
logging.c ctdb-logging: Allow numeric specification of debug level 2015-11-16 00:46:14 +01:00
logging.h ctdb-logging: Add APIs to convert debug_level to and from integer 2015-11-16 00:46:14 +01:00
pkt_read.c ctdb-common: Add packet read abstraction 2015-10-07 14:53:28 +02:00
pkt_read.h ctdb-common: Add packet read abstraction 2015-10-07 14:53:28 +02:00
pkt_write.c ctdb-common: Add packet write abstraction 2015-10-07 14:53:28 +02:00
pkt_write.h ctdb-common: Add packet write abstraction 2015-10-07 14:53:28 +02:00
rb_tree.c ctdb-common: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
rb_tree.h Added some #ifndefs to stop files being included multiple times. 2011-11-11 14:31:50 +11:00
reqid.c ctdb-common: Add request id abstraction 2015-10-07 14:53:28 +02:00
reqid.h ctdb-common: Add request id abstraction 2015-10-07 14:53:28 +02:00
srvid.c ctdb-common: Add srvid abstraction 2015-10-07 14:53:28 +02:00
srvid.h ctdb-common: Add srvid abstraction 2015-10-07 14:53:28 +02:00
system_aix.c ctdb-common: Protocol argument must be in host order for socket() call 2016-02-02 08:42:09 +01:00
system_common.c ctdb-common: Protocol argument must be in host order for socket() call 2016-02-02 08:42:09 +01:00
system_freebsd.c ctdb-common: Use documented names for protocol family in socket() 2016-02-02 08:42:09 +01:00
system_gnu.c ctdb-common: Use documented names for protocol family in socket() 2016-02-02 08:42:09 +01:00
system_kfreebsd.c ctdb-common: Use documented names for protocol family in socket() 2016-02-02 08:42:09 +01:00
system_linux.c ctdb-common: For AF_PACKET socket types, protocol is in network order 2016-03-04 12:58:50 +01:00
system_util.c ctdb-common: New function ctdb_wait_for_process_to_exit() 2016-02-23 07:23:18 +01:00
system.h ctdb-common: New function ctdb_wait_for_process_to_exit() 2016-02-23 07:23:18 +01:00