fd.ip has type PT_IPV4ADDR, not PT_CHARBUF