목차
□ 개발 요구사항
□ 소스코드
□ 소스코드
본문내용
//xor 연산
{
temp = (temp<<1) | (tempmsg[i]&f)>>t;
if(temp&0x08)
temp = (0x0f&~(((~temp) | b) & (temp | (~b))));
}
}
//printf("Sender MAC: %d , Reciever MAC: %d ,Checksum : %d, CRC: %d \n",data.sender,data.reciever,data.checksum,data.crc);
printf("Sender MAC: %d , Reciever MAC: %d ",data.sender,data.reciever);
cout<<" Message : " <
printf("Checksum : %d, CRC: %d \n",data.checksum,(0x07&temp));
if(shorttemp==0)//연산 결과가 0이라면 정상
cout << "CheckSum 정상" << endl;
else
cout << "CheckSum 에러" << endl;
if(temp==0) //연산 결과가 0이라면 정상
cout << "CRC 정상" << endl;
else
cout << "CRC 에러" << endl;
}
{
temp = (temp<<1) | (tempmsg[i]&f)>>t;
if(temp&0x08)
temp = (0x0f&~(((~temp) | b) & (temp | (~b))));
}
}
//printf("Sender MAC: %d , Reciever MAC: %d ,Checksum : %d, CRC: %d \n",data.sender,data.reciever,data.checksum,data.crc);
printf("Sender MAC: %d , Reciever MAC: %d ",data.sender,data.reciever);
cout<<" Message : " <
if(shorttemp==0)//연산 결과가 0이라면 정상
cout << "CheckSum 정상" << endl;
else
cout << "CheckSum 에러" << endl;
if(temp==0) //연산 결과가 0이라면 정상
cout << "CRC 정상" << endl;
else
cout << "CRC 에러" << endl;
}
추천자료
컴퓨터 네트워크의 모든것
[해커][해킹][해커의 해킹][해커의 해킹 방지 대책][보안][보안시스템][네트워크][인터넷][컴...
[컴퓨터프로그램]컴퓨터프로그램저작권의 제한, 컴퓨터프로그램저작권의 증권화, 컴퓨터프로...
컴퓨터 네트워크
컴퓨터 네트워크 보안 확보를 위한 접근통제
컴퓨터 네트워크 - DNS에 대해
백신프로그램(컴퓨터백신)의 정의, 백신프로그램(컴퓨터백신)의 종류, 백신프로그램(컴퓨터백...
컴퓨터네트워크 - 와이어샤크(Wireshark) 패킷 분석
컴퓨터네트워크 - 자바 소켓프로그래밍을 이용한 야구게임
[산업보안학 産業保安學] 국내 IT 보안 기술 현황 및 문제점 - 개인용 컴퓨터 보안 기술, 데...
소개글