]> git.proxmox.com Git - mirror_frr.git/blame - bfdd/bsd.c
Merge pull request #5116 from ton31337/feature/maximum-prefix_uint64_to_uint32_7.1
[mirror_frr.git] / bfdd / bsd.c
CommitLineData
e9e2c950
RZ
1/*
2 * *BSD specific code
3 *
4 * Copyright (C) 2018 Network Device Education Foundation, Inc. ("NetDEF")
5 *
6 * FRR is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
9 * later version.
10 *
11 * FRR is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with FRR; see the file COPYING. If not, write to the Free
18 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 * 02111-1307, USA.
20 */
21
22#include <zebra.h>
23
24#ifdef BFD_BSD
25
26#include <net/if.h>
27#include <net/if_types.h>
28#include <sys/types.h>
29#include <sys/socket.h>
30
31#include <ifaddrs.h>
32
33#include "bfd.h"
34
e9e2c950
RZ
35/*
36 * Definitions.
37 */
e9e2c950
RZ
38int bp_bind_dev(int sd, const char *dev)
39{
40 /*
41 * *BSDs don't support `SO_BINDTODEVICE`, instead you must
42 * manually specify the main address of the interface or use
43 * BPF on the socket descriptor.
44 */
45 return 0;
46}
47
e9e2c950 48#endif /* BFD_BSD */