int
zclient_read_header (struct stream *s, int sock, u_int16_t *size, u_char *marker,
- u_char *version, u_int16_t *vrf_id, u_int16_t *cmd)
+ u_char *version, vrf_id_t *vrf_id, u_int16_t *cmd)
{
if (stream_read (s, sock, ZEBRA_HEADER_SIZE) != ZEBRA_HEADER_SIZE)
return -1;
extern void zclient_create_header (struct stream *, uint16_t, vrf_id_t);
extern int zclient_read_header (struct stream *s, int sock, u_int16_t *size,
u_char *marker, u_char *version,
- u_int16_t *vrf_id, u_int16_t *cmd);
+ vrf_id_t *vrf_id, u_int16_t *cmd);
extern struct interface *zebra_interface_add_read (struct stream *, vrf_id_t);
extern struct interface *zebra_interface_state_read (struct stream *s, vrf_id_t);
uint16_t length;
u_char marker;
u_char version;
- uint16_t vrf_id;
+ vrf_id_t vrf_id;
uint16_t command;
struct in_addr raddr;
uint8_t distance;
stream_reset(s);
err = zclient_read_header (s, zlookup->sock, &length, &marker, &version,
- &vrf_id, &command);
+ &vrf_id, &command);
if (err < 0) {
zlog_err("%s %s: zclient_read_header() failed",
__FILE__, __PRETTY_FUNCTION__);