2003-12-13 今日の2時間 u_int hlen; ... hlen = ip_h->ip_len << 4; ... malloc(buf, sizeof(hlen)); ではなく、 malloc(buf, hlen); に気づく。 2H。あほだ。