*: add most of the required setup_common_bufsiz() calls
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -34,6 +34,7 @@ struct xid_item {
|
||||
} FIX_ALIASING;
|
||||
|
||||
#define dhcprelay_xid_list (*(struct xid_item*)bb_common_bufsiz1)
|
||||
#define INIT_G() do { setup_common_bufsiz(); } while (0)
|
||||
|
||||
static struct xid_item *xid_add(uint32_t xid, struct sockaddr_in *ip, int client)
|
||||
{
|
||||
@@ -257,6 +258,8 @@ int dhcprelay_main(int argc, char **argv)
|
||||
int num_sockets, max_socket;
|
||||
uint32_t our_nip;
|
||||
|
||||
INIT_G();
|
||||
|
||||
server_addr.sin_family = AF_INET;
|
||||
server_addr.sin_addr.s_addr = htonl(INADDR_BROADCAST);
|
||||
server_addr.sin_port = htons(SERVER_PORT);
|
||||
|
||||
Reference in New Issue
Block a user