Implement the buildTcpMD5Sig function in the /app/ directory that generates TCP MD5 signature structures for both IPv4 and IPv6 addresses. The function should take an IP address (IPv4 or IPv6) and a string (for the password) as input parameters and return a structure that adheres to the specified format, ensuring it has a size of 216 bytes.
Specific Requirements:
Function Signature: The function should be declared as follows:
The function should correctly identify whether the provided IP address is IPv4 or IPv6.
If the IP is IPv4, it should be formatted accordingly.
If the IP is IPv6, it should be formatted accordingly.
Structure Definition:
Define a structure TCPM5Sig with appropriate fields such that when an instance is created, its size equals 216 bytes.
Ensure the first byte indicates the address family (2 for IPv4, 10 for IPv6).
Data Filling:
Populate the fields of the TCPM5Sig structure with:
The converted and packed binary representation of the IP address.
The password (as bytes) should also be included in the structure.
Return Value: The function should return the populated TCPM5Sig structure and a nil error if successful. In case of a malformed IP address, it should return an error.
Ensure that the final implementation passes all provided tests in the test code provided in the prompt.
Important: declare your solution in package server (the test file uses package server, so the implementation must use the matching package name).