Skip to content

add environment variable attribute Framed-IPv6-Prefix when present#87

Open
DimitriPapadopoulos wants to merge 3 commits into
FreeRADIUS:masterfrom
DimitriPapadopoulos:Framed-IPv6-Prefix
Open

add environment variable attribute Framed-IPv6-Prefix when present#87
DimitriPapadopoulos wants to merge 3 commits into
FreeRADIUS:masterfrom
DimitriPapadopoulos:Framed-IPv6-Prefix

Conversation

@DimitriPapadopoulos

@DimitriPapadopoulos DimitriPapadopoulos commented Apr 6, 2024

Copy link
Copy Markdown
Contributor

Fixes #86 (comment).

The current code implies `int` is 4 bytes - which it is on current Linux
platforms - and that `attr_fip->data` is aligned - which I presume it is.

Neverthless, it might be clearer to use memcpy() here.

From the  Linux header <linux/in.h> :
	/* Internet address. */
	struct in_addr {
		__be32	s_addr;
	};
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review April 13, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ocserv rewrite framed ip from radius

1 participant