Fix attribute definitions. #3424.
Calculate correct interface name length.  #3423.