mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-ggsn.git
synced 2025-10-23 08:22:07 +00:00
The 3GPP specs are quite strange when it comes to how an IPv6 address or rather prefix is assigned to an IPv6 PDP context. The designated method for allocating the IPv6 address via the PDP EUA (End User Address) Information Element in the GTP signalling plane is *not* used to allocate the address/prefix. Instead, the EUA is used to allocate an "interface identifier" to the MS, which it the uses to derive its link-local source address to send a router solicitation. The GGSN subsequently answers witha router advertisement, advertising a single/64 prefix, whihcthe MS then uses to generate it's real IPv6 source address for subsequent communication. Change-Id: Icddf7d30e01d76a4784bcef5787b36f52f703a9f
38 lines
781 B
C
38 lines
781 B
C
/*
|
|
* Syslog functions.
|
|
* Copyright (C) 2003, 2004 Mondru AB.
|
|
*
|
|
* The contents of this file may be used under the terms of the GNU
|
|
* General Public License Version 2, provided that the above copyright
|
|
* notice and this permission notice is included in all copies or
|
|
* substantial portions of the software.
|
|
*
|
|
*/
|
|
|
|
#ifndef _SYSERR_H
|
|
#define _SYSERR_H
|
|
|
|
#include <osmocom/core/logging.h>
|
|
|
|
enum {
|
|
DIP,
|
|
DTUN,
|
|
DGGSN,
|
|
DSGSN,
|
|
DICMP6,
|
|
};
|
|
|
|
#define SYS_ERR(sub, pri, en, fmt, args...) \
|
|
if (en) { \
|
|
logp2(sub, pri, __FILE__, __LINE__, 0, \
|
|
"errno=%d/%s " fmt "\n", en, strerror(en), \
|
|
##args); \
|
|
} else { \
|
|
logp2(sub, pri, __FILE__, __LINE__, 0, \
|
|
fmt "\n", ##args); \
|
|
}
|
|
|
|
extern const struct log_info log_info;
|
|
|
|
#endif /* !_SYSERR_H */
|