Revision 3e236955 proto/ospf/ospf.h

View differences:

proto/ospf/ospf.h
766 766
}
767 767

  
768 768
static inline u32 *
769
put_ipv6_prefix(u32 *buf, ip_addr addr, u8 pxlen, u8 pxopts, u16 lh)
769
put_ipv6_prefix(u32 *buf, ip_addr addr UNUSED4, u8 pxlen UNUSED4, u8 pxopts UNUSED4, u16 lh UNUSED4)
770 770
{
771 771
#ifdef IPV6
772 772
  *buf++ = ((pxlen << 24) | (pxopts << 16) | lh);
......
840 840
static inline int ospf_is_v3(struct ospf_proto *p)
841 841
{ return ! p->ospf2; }
842 842
*/
843
static inline int ospf_get_version(struct ospf_proto *p)
843
static inline int ospf_get_version(struct ospf_proto *p UNUSED4 UNUSED6)
844 844
{ return ospf_is_v2(p) ? 2 : 3; }
845 845

  
846 846
struct ospf_area *ospf_find_area(struct ospf_proto *p, u32 aid);
......
897 897
/* packet.c */
898 898
void ospf_pkt_fill_hdr(struct ospf_iface *ifa, void *buf, u8 h_type);
899 899
uint ospf_pkt_maxsize(struct ospf_iface *ifa);
900
int ospf_rx_hook(sock * sk, int size);
900
int ospf_rx_hook(sock * sk, uint size);
901 901
// void ospf_tx_hook(sock * sk);
902 902
void ospf_err_hook(sock * sk, int err);
903 903
void ospf_verr_hook(sock *sk, int err);
......
922 922
#define SKIP(DSC) do { err_dsc = DSC; goto skip; } while(0)
923 923
#endif
924 924

  
925
static inline uint ospf_pkt_hdrlen(struct ospf_proto *p)
925
static inline uint ospf_pkt_hdrlen(struct ospf_proto *p UNUSED4 UNUSED6)
926 926
{ return ospf_is_v2(p) ? (sizeof(struct ospf_packet) + sizeof(union ospf_auth)) : sizeof(struct ospf_packet); }
927 927

  
928 928
static inline void * ospf_tx_buffer(struct ospf_iface *ifa)

Also available in: Unified diff