quagga and frr,from The Linux Foundation

简介: website:https://frrouting.org/     github:https://github.com/FRRouting/frr FRRouting (FRR) is an IP routing protocol suite for Linux and Unix platf...

website:https://frrouting.org/     

github:https://github.com/FRRouting/frr

 

FRRouting (FRR) is an IP routing protocol suite for Linux and Unix platforms which includes protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP.

FRR’s seamless integration with the native Linux/Unix IP networking stacks makes it applicable to a wide variety of use cases including connecting hosts/VMs/containers to the network, advertising network services, LAN switching and routing, Internet access routers, and Internet peering.

 

支持的协议列表:

 

Protocol     IPv4     IPv6
OSPF    OSPFv2   OSPFv3
ISIS     ISIS IPv4   ISIS IPv6
RIP     RIP     RIPng
BGP     BGP IPv4   BGP IPv6
BGP 4-byte AS BGP   IPv4 4-byte AS BGP   IPv6 4-byte AS
LDP     LDP IPv4

 

每个守护进程使用socket收发报文,以RIP为例:

1、static int rip_create(void)

/* Create read and timer thread. */
rip_event(RIP_READ, rip->sock);
rip_event(RIP_UPDATE_EVENT, 1);

 

2、void rip_event(enum rip_event event, int sock)

thread_add_read(master, rip_read, NULL, sock, &rip->t_read);

thread_add_timer(master, rip_update, NULL,
sock ? 2 : rip->update_time + jitter,
&rip->t_update);

 

3、static int rip_read(struct thread *t)

len = recvfrom(sock, (char *)&rip_buf.buf, sizeof(rip_buf.buf), 0,
(struct sockaddr *)&from, &fromlen);

 

4、static int rip_send_packet(u_char *buf, int size, struct sockaddr_in *to, struct connected *ifc)

ret = sendto(rip->sock, buf, size, 0, (struct sockaddr *)&sin,
sizeof(struct sockaddr_in));

 

目录
相关文章
|
安全 Linux
什么是 Linux Foundation
什么是 Linux Foundation
432 0
什么是 Linux Foundation
|
网络协议 Shell Linux
Linux Foundation(笔记)
/************************************************************* * Linux Foundation * 1.
1015 0
|
1天前
|
安全 网络协议 Linux
linux必学的60个命令
Linux是一个功能强大的操作系统,提供了许多常用的命令行工具,用于管理文件、目录、进程、网络和系统配置等。以下是Linux必学的60个命令的概览,但请注意,这里可能无法列出所有命令的完整语法和选项,仅作为参考
|
1天前
|
监控 Linux 数据处理
|
1天前
|
编解码 Ubuntu Linux
|
1天前
|
JSON Linux 数据格式
Linux命令发送http
请注意,`curl`命令非常灵活,可以根据您的需求进行多种配置和自定义。您可以查看 `curl`命令的文档以获取更多详细信息。
5 0
|
3天前
|
安全 Linux 测试技术
|
3天前
|
安全 Linux Windows
Linux中Shutdown命令使用介绍
Linux中Shutdown命令使用介绍
10 2
|
4天前
|
缓存 关系型数据库 Linux
Linux目录结构:深入理解与命令创建指南
Linux目录结构:深入理解与命令创建指南
|
4天前
|
数据挖掘 Linux vr&ar
Linux命令实战:解决日常问题的利器
Linux命令实战:解决日常问题的利器