/*
*/
/*
* Copyright (c) 2012 Ed Maste. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <config.h>
#include "route-table.h"
#include <string.h>
#include <unistd.h>
#include "util.h"
static int pid;
static unsigned int register_count = 0;
sizeof (long))
typedef struct rtmsg {
} rtmsg_t;
static int
{
case AF_INET:
return (sizeof (struct sockaddr_in));
case AF_LINK:
return (sizeof (struct sockaddr_dl));
case AF_INET6:
return (sizeof (struct sockaddr_in6));
default:
return (sizeof (struct sockaddr));
}
}
bool
{
int rtsock_fd;
static int seq;
int rlen;
int i;
int l;
if (rtsock_fd == -1)
return (false);
l = ROUNDUP_LONG(sizeof (struct sockaddr_in));
cp += l;
l = ROUNDUP_LONG(sizeof (struct sockaddr_dl));
cp += l;
return (false);
}
do {
if (ssz < 0)
return (false);
for (i = 1; i; i <<= 1) {
ALIGNED_CAST(const struct sockaddr_dl *,
sa);
int namelen;
return (true);
}
}
}
return (false);
}
{
return (0);
}
void
route_table_register(void)
{
if (!register_count) {
}
}
void
route_table_unregister(void)
{
}
void
route_table_run(void)
{
}
void
route_table_wait(void)
{
}