Skip to content
Snippets Groups Projects
Commit c0dc3f6c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add convenience pointer (from_port) to SENDERPORT header field

parent eaa09dba
No related branches found
No related tags found
No related merge requests found
......@@ -596,6 +596,7 @@ typedef struct { /* Message or File */
*from_ip, /* From IP address (e.g. "192.168.1.2") */
*from_host, /* From host name */
*from_prot, /* From protocol (e.g. "Telnet", "NNTP", "HTTP", etc.) */
*from_port, /* From TCP/UDP port number */
*replyto, /* Reply-to name */
*replyto_ext, /* Reply-to extension */
*replyto_list, /* Comma-separated list of mailboxes, RFC822-style */
......
......@@ -773,6 +773,9 @@ static void set_convenience_ptr(smbmsg_t* msg, uint16_t hfield_type, void* hfiel
case SENDERPROTOCOL:
msg->from_prot=(char*)hfield_dat;
break;
case SENDERPORT:
msg->from_port=(char*)hfield_dat;
break;
case REPLYTO:
msg->replyto=(char*)hfield_dat;
break;
......@@ -910,6 +913,7 @@ static void clear_convenience_ptrs(smbmsg_t* msg)
msg->from_ip=NULL;
msg->from_host=NULL;
msg->from_prot=NULL;
msg->from_port=NULL;
memset(&msg->from_net,0,sizeof(net_t));
msg->replyto=NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment