这些天我一直在阅读dhcpd源代码,下面有很多这样的用法,我不明白那是什么......
在参数列表和struct packet *packet;
之间{
时发生了什么?
int locate_network (packet)
struct packet *packet;
{
struct iaddr ia;
struct data_string data;
struct subnet *subnet = (struct subnet *)0;
struct option_cache *oc;
if ((oc = lookup_option(&agent_universe, packet->options,
RAI_LINK_SELECT)) == NULL)
oc = lookup_option(&dhcp_universe, packet->options,
DHO_SUBNET_SELECTION);
//.........
}