这些天我一直在阅读 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);
//.........
}