if.h (71333) | if.h (78064) |
---|---|
1/* $FreeBSD: head/usr.sbin/rtadvd/if.h 71333 2001-01-21 15:25:46Z itojun $ */ 2/* $KAME: if.h,v 1.2 2000/05/16 13:34:13 itojun Exp $ */ | 1/* $FreeBSD: head/usr.sbin/rtadvd/if.h 78064 2001-06-11 12:39:29Z ume $ */ 2/* $KAME: if.h,v 1.6 2001/01/21 15:37:14 itojun Exp $ */ |
3 4/* 5 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 21 unchanged lines hidden (view full) --- 32 33#define RTADV_TYPE2BITMASK(type) (0x1 << type) 34 35extern struct if_msghdr **iflist; 36extern size_t ifblock_size; 37extern char *ifblock; 38 39struct nd_opt_hdr; | 3 4/* 5 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 21 unchanged lines hidden (view full) --- 32 33#define RTADV_TYPE2BITMASK(type) (0x1 << type) 34 35extern struct if_msghdr **iflist; 36extern size_t ifblock_size; 37extern char *ifblock; 38 39struct nd_opt_hdr; |
40struct sockaddr_dl *if_nametosdl __P((char *name)); 41int if_getmtu __P((char *name)); 42int if_getflags __P((int ifindex, int oifflags)); 43int lladdropt_length __P((struct sockaddr_dl *sdl)); 44void lladdropt_fill __P((struct sockaddr_dl *sdl, struct nd_opt_hdr *ndopt)); | 40struct sockaddr_dl *if_nametosdl __P((char *)); 41int if_getmtu __P((char *)); 42int if_getflags __P((int, int)); 43int lladdropt_length __P((struct sockaddr_dl *)); 44void lladdropt_fill __P((struct sockaddr_dl *, struct nd_opt_hdr *)); |
45int rtbuf_len __P((void)); | 45int rtbuf_len __P((void)); |
46int get_rtinfo __P((char *buf, size_t *len)); 47char *get_next_msg __P((char *buf, char *lim, int ifindex, size_t *lenp, 48 int filter)); 49struct in6_addr *get_addr __P((char *buf)); 50int get_rtm_ifindex __P((char *buf)); 51int get_ifm_ifindex __P((char *buf)); 52int get_ifam_ifindex __P((char *buf)); 53int get_ifm_flags __P((char *buf)); 54int get_prefixlen __P((char *buf)); 55int rtmsg_type __P((char *buf)); 56int ifmsg_type __P((char *buf)); 57int rtmsg_len __P((char *buf)); 58int ifmsg_len __P((char *buf)); | 46char *get_next_msg __P((char *, char *, int, size_t *, int)); 47struct in6_addr *get_addr __P((char *)); 48int get_rtm_ifindex __P((char *)); 49int get_ifm_ifindex __P((char *)); 50int get_ifam_ifindex __P((char *)); 51int get_ifm_flags __P((char *)); 52int get_prefixlen __P((char *)); 53int prefixlen __P((u_char *, u_char *)); 54int rtmsg_type __P((char *)); 55int ifmsg_type __P((char *)); 56int rtmsg_len __P((char *)); 57int ifmsg_len __P((char *)); |
59void init_iflist __P((void)); | 58void init_iflist __P((void)); |