s3:nmbd: also listen explicit on the subnet broadcast addresses
[samba.git] / source3 / include / nameserv.h
index 496d87e2dbace6ceb90cbc41958fc3d9f6aeb1e3..53ffd6faec3c4a069c884688a45e767b9c60e1bb 100644 (file)
@@ -434,7 +434,9 @@ struct subnet_record {
        struct in_addr mask_ip;
        struct in_addr myip;
        int nmb_sock;               /* socket to listen for unicast 137. */
+       int nmb_bcast;              /* socket to listen for broadcast 137. */
        int dgram_sock;             /* socket to listen for unicast 138. */
+       int dgram_bcast;            /* socket to listen for broadcast 138. */
 };
 
 /* A resource record. */
@@ -530,7 +532,8 @@ struct packet_struct
        bool locked;
        struct in_addr ip;
        int port;
-       int fd;
+       int recv_fd;
+       int send_fd;
        time_t timestamp;
        enum packet_type packet_type;
        union {