}
/* Build the table key */
-static void if_build_key(u_int32_t ifindex, struct prefix *p)
+static void if_build_key(uint32_t ifindex, struct prefix *p)
{
p->family = AF_INET;
p->prefixlen = IPV4_MAX_BITLEN;
/* Look up an interface by identifier within a NS */
struct interface *if_lookup_by_index_per_ns(struct zebra_ns *ns,
- u_int32_t ifindex)
+ uint32_t ifindex)
{
struct prefix p;
struct route_node *rn;
rib_update(ifp->vrf_id, RIB_UPDATE_IF_CHANGE);
}
-static void ipv6_ll_address_to_mac(struct in6_addr *address, u_char *mac)
+static void ipv6_ll_address_to_mac(struct in6_addr *address, uint8_t *mac)
{
mac[0] = address->s6_addr[8] ^ 0x02;
mac[1] = address->s6_addr[9];
inet_pton(AF_INET, buf, &ipv4_ll);
- ipv6_ll_address_to_mac(address, (u_char *)mac);
+ ipv6_ll_address_to_mac(address, (uint8_t *)mac);
ns_id = zvrf->zns->ns_id;
/*
int idx_number = 1;
VTY_DECLVAR_CONTEXT(interface, ifp);
struct if_link_params *iflp = if_link_params_get(ifp);
- u_int32_t metric;
+ uint32_t metric;
metric = strtoul(argv[idx_number]->arg, NULL, 10);
VTY_DECLVAR_CONTEXT(interface, ifp);
struct if_link_params *iflp = if_link_params_get(ifp);
struct in_addr addr;
- u_int32_t as;
+ uint32_t as;
if (!inet_aton(argv[idx_ipv4]->arg, &addr)) {
vty_out(vty, "Please specify Router-Addr by A.B.C.D\n");
"Maximum delay in micro-second as decimal (0...16777215)\n")
{
/* Get and Check new delay values */
- u_int32_t delay = 0, low = 0, high = 0;
+ uint32_t delay = 0, low = 0, high = 0;
delay = strtoul(argv[1]->arg, NULL, 10);
if (argc == 6) {
low = strtoul(argv[3]->arg, NULL, 10);
VTY_DECLVAR_CONTEXT(interface, ifp);
struct if_link_params *iflp = if_link_params_get(ifp);
- u_int8_t update = 0;
+ uint8_t update = 0;
if (argc == 2) {
/* Check new delay value against old Min and Max delays if set
int idx_number = 1;
VTY_DECLVAR_CONTEXT(interface, ifp);
struct if_link_params *iflp = if_link_params_get(ifp);
- u_int32_t value;
+ uint32_t value;
value = strtoul(argv[idx_number]->arg, NULL, 10);