Detect NAK replies.

This commit is contained in:
Daniel Beer 2010-04-08 14:51:56 +12:00
parent b12e0f5ddb
commit eff1148348
1 changed files with 5 additions and 0 deletions

5
fet.c
View File

@ -305,6 +305,11 @@ static int parse_packet(int plen)
return -1; return -1;
} }
if (type == PTYPE_NAK) {
fprintf(stderr, "fet: FET returned NAK\n");
return -1;
}
/* Parse packet parameters */ /* Parse packet parameters */
if (type == PTYPE_PARAM || type == PTYPE_MIXED) { if (type == PTYPE_PARAM || type == PTYPE_MIXED) {
int j; int j;