static_leases.h

来自「busybox-1.2.0,标准的Linux工具集[最新].对linux下软件的」· C头文件 代码 · 共 24 行

H
24
字号
/* static_leases.h */#ifndef _STATIC_LEASES_H#define _STATIC_LEASES_H#include "dhcpd.h"/* Config file will pass static lease info to this function which will add it * to a data structure that can be searched later */int addStaticLease(struct static_lease **lease_struct, uint8_t *mac, uint32_t *ip);/* Check to see if a mac has an associated static lease */uint32_t getIpByMac(struct static_lease *lease_struct, void *arg);/* Check to see if an ip is reserved as a static ip */uint32_t reservedIp(struct static_lease *lease_struct, uint32_t ip);/* Print out static leases just to check what's going on (debug code) */void printStaticLeases(struct static_lease **lease_struct);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?