Lely core libraries  2.2.5
rtnl.h File Reference
#include "io.h"
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/socket.h>
#include <unistd.h>
#include <linux/rtnetlink.h>
Include dependency graph for rtnl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rtnl_handle
 

Macros

#define RTA_TAIL(rta)   (struct rtattr *)((char *)(rta) + RTA_ALIGN((rta)->rta_len))
 Returns the address of the next attribute. More...
 

Detailed Description

This is the internal header file of the rtnetlink functions.

Author
J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file rtnl.h.

Macro Definition Documentation

◆ RTA_TAIL

#define RTA_TAIL (   rta)    (struct rtattr *)((char *)(rta) + RTA_ALIGN((rta)->rta_len))

Returns the address of the next attribute.

This macro is useful for constructing a list of attributes, since RTA_NEXT() only works for complete lists.

Definition at line 44 of file rtnl.h.