diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/nameserv.h | 2 | ||||
-rw-r--r-- | source3/include/proto.h | 3 | ||||
-rw-r--r-- | source3/include/smb.h | 6 |
3 files changed, 10 insertions, 1 deletions
diff --git a/source3/include/nameserv.h b/source3/include/nameserv.h index ad25131481..0de00f3636 100644 --- a/source3/include/nameserv.h +++ b/source3/include/nameserv.h @@ -142,7 +142,7 @@ enum netbios_reply_type_code { NMB_QUERY, NMB_STATUS, NMB_REG, NMB_REG_REFRESH, enum name_source {LMHOSTS_NAME, REGISTER_NAME, SELF_NAME, DNS_NAME, DNSFAIL_NAME, PERMANENT_NAME, WINS_PROXY_NAME}; enum node_type {B_NODE=0, P_NODE=1, M_NODE=2, NBDD_NODE=3}; -enum packet_type {NMB_PACKET, DGRAM_PACKET}; +enum packet_type {NMB_PACKET, DGRAM_PACKET, NMB_SOCK_PACKET, DGRAM_SOCK_PACKET }; enum master_state { diff --git a/source3/include/proto.h b/source3/include/proto.h index 331725daea..24dfd6ed1a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -613,6 +613,7 @@ int open_socket_out(int type, struct in_addr *addr, int port ,int timeout); void reset_globals_after_fork(void); char *client_name(int fd); char *client_addr(int fd); +int open_pipe_sock(char *path); /*The following definitions come from lib/util_status.c */ @@ -838,6 +839,8 @@ BOOL nmb_name_equal(struct nmb_name *n1, struct nmb_name *n2); BOOL send_packet(struct packet_struct *p); struct packet_struct *receive_packet(int fd,enum packet_type type,int t); void sort_query_replies(char *data, int n, struct in_addr ip); +BOOL read_nmb_sock(int c, struct nmb_state *con); +int get_nmb_sock(void); /*The following definitions come from libsmb/nterr.c */ diff --git a/source3/include/smb.h b/source3/include/smb.h index 5e6731e167..8adfa5e690 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1745,6 +1745,12 @@ struct field_info #define MAX_MAX_MUX_LIMIT 16 +struct nmb_state +{ + struct in_addr ip; + int port; +}; + #endif /* _SMB_H */ /* _SMB_H */ |