Today, the feedback from the questionnaire clarifies the direction of improvement. As the team leader, I am responsible for the overall project progress management and quality control, the main direction in 10 days is:
1, continuous new version of the demand analysis to clarify the direction of team members
2. Instruct testers to complete high quality test
3, write the main document
Today to complete the learning of some network programming IP packet knowledge, for our platform to expand may have some help.
Linux IP Header Option ipoption implementation (difficult to implement, setsockopt () function does not support the BSD standard ip_option keyword)
Under Windows
Define the IPOPTIONHDR structure body
typedef struct _IPOPTIONHDR
{
unsigned char code;
unsigned char len;
unsigned char ptr;
unsigned long addr[9];
}ipoptionheader;
Then set the socket before the contract is made
if (Recordflag)
{
IP options Each field is initialized with 0
ZeroMemory (&ipoption,sizeof (ipoption));
Set routing options for each ICMP packet
Ipoption.code=ip_record_route;
ipoption.ptr=4;
ipoption.len=39;
Ret=setsockopt (M_socket,ipproto_ip,ip_options, (char*) &ipoption,sizeof (ipoption));
if (ret==socket_error)
{
printf ("setsockopt (ip_options) failed:%d\n", WSAGetLastError ());
}
The ability to complete the routing of packages in the extended options of IP headers is complete.
Software Engineering 2016.6.28 Daily