---
title: "DHCP_Init() error report"
url: "https://maker.wiznet.io/forum/12629"
markdown_url: "https://maker.wiznet.io/forum/12629/md"
type: "Forum topic"
category: "Serial-to-Ethernet & ConfigTool"
author: "leemin988"
created: "2017-12-19T08:10:04+09:00"
last_activity: "2017-12-20T07:40:50+09:00"
language: "ko"
views: 688
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# DHCP_Init() error report

## Question

Asked by leemin988 on 2017-12-19 in Serial-to-Ethernet & ConfigTool.

dhcp.c → DHCP_init() 함수 안에서

```
// WIZchip Netinfo Clear
setSIPR(zeroip);
setSIPR(zeroip);   // 두번 호출함.
setGAR(zeroip);
```

실수 아닌가요?
아마 setSIPR() 함수를 Copy->Paste하다가 같은 함수를 두번 호출한거같아서요.
동작에는 문제가 없지만 아래처럼 setSUBR()함수로 subnet mask를 clear해야할 듯 합니다.

```
// WIZchip Netinfo Clear
setSIPR(zeroip);
setSUBR(zeroip);
setGAR(zeroip);
```

## Replies

### Reply 1 by scott, 2017-12-20

담당자에게 확인 해보고 답변 드리도록 하겠습니다.

감사합니다.

---

Source: https://maker.wiznet.io/forum/12629
