---
title: "W5300 관련해서 질문드립니다."
url: "https://maker.wiznet.io/forum/11121"
markdown_url: "https://maker.wiznet.io/forum/11121/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "kjhkjh724"
created: "2015-06-19T09:05:27+09:00"
last_activity: "2017-05-04T08:36:03+09:00"
language: "ko"
views: 385
replies: 0
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W5300 관련해서 질문드립니다.

## Question

Asked by kjhkjh724 on 2015-06-19 in Ethernet Chips.

tcp 를 이용해서 TI의 OMAP하고 PC하고 통신하는대요.
통신 소스는 제공되는 기본소스를 조금 변형해서 사용했습니다.

그런대 **attribute** ((packed)) 이구문을 사용해서 11byte의 구조체를 전송하려고하니깐 맨앞에 0x00이 붙고 뒤에 1byte만큼 짤려서 11byte가 전송됩니다.

typedef struct request_reply{
uint8 Type;
uint16 Lenth;
uint8 Image_Type;
uint32 Image_Size;
uint16 Total_Packet_Number;
uint8 RV;
} **attribute** ((packed)) Req;
구조체 형태는 위와 같이 생겼는대요.

몇가지 실험을 해본결과 처음 Type에서 8bit로 인식되지 않고 16 bit로 인식되는것 갔습니다. 혹시 이런경우 해결첵을 아시나요???

---

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