Skip to content

Commit

Permalink
Merge pull request #196 from sp193/smb-update
Browse files Browse the repository at this point in the history
SMB update
  • Loading branch information
ElPatas1 authored Feb 12, 2019
2 parents b08510b + 8e04003 commit 110c88c
Show file tree
Hide file tree
Showing 11 changed files with 667 additions and 512 deletions.
6 changes: 4 additions & 2 deletions modules/iopcore/cdvdman/device-smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ static void ps2ip_init(void);
// Note: recvfrom() used here is not a standard recvfrom() function.
int (*plwip_close)(int s); // #6
int (*plwip_connect)(int s, struct sockaddr *name, socklen_t namelen); // #7
int (*plwip_recvfrom)(int s, void *header, int hlen, void *payload, int plen, unsigned int flags, struct sockaddr *from, socklen_t *fromlen); // #10
int (*plwip_recv)(int s, void *mem, int len, unsigned int flags); // #9
int (*plwip_send)(int s, void *dataptr, int size, unsigned int flags); // #11
int (*plwip_socket)(int domain, int type, int protocol); // #13
int (*plwip_setsockopt)(int s, int level, int optname, const void *optval, socklen_t optlen); // #19
u32 (*pinet_addr)(const char *cp); // #24

static u32 ServerCapabilities;
Expand All @@ -60,9 +61,10 @@ static void ps2ip_init(void)
// Set functions pointers here
plwip_close = info.exports[6];
plwip_connect = info.exports[7];
plwip_recvfrom = info.exports[10];
plwip_recv = info.exports[9];
plwip_send = info.exports[11];
plwip_socket = info.exports[13];
plwip_setsockopt = info.exports[19];
pinet_addr = info.exports[24];
}

Expand Down
Loading

0 comments on commit 110c88c

Please sign in to comment.