struct IP_t
{
int start_ip;
int end_ip;
};
已知 mask_ip 和 start_ip, 求end_ip.
pIP->end_ip = ((pIP->start_ip & pIP->end_ip) | (~pIP-> end_ip));
呵呵,理解要透彻啊
struct IP_t
{
int start_ip;
int end_ip;
};
已知 mask_ip 和 start_ip, 求end_ip.
pIP->end_ip = ((pIP->start_ip & pIP->end_ip) | (~pIP-> end_ip));
呵呵,理解要透彻啊