]>
git.proxmox.com Git - mirror_frr.git/blob - bfdd/bsd.c
4 * Copyright (C) 2018 Network Device Education Foundation, Inc. ("NetDEF")
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
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.
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
27 #include <net/if_types.h>
28 #include <sys/types.h>
29 #include <sys/socket.h>
38 int bp_bind_dev(int sd
, const char *dev
)
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.